Assignment#2, Example Session by dxr20321

VIEWS: 4 PAGES: 1

									                Assignment #2, Example Session
% java scalc.Main
Welcome to the stochastic calculator.
Type 'help' for information.
-> list
-> load f
-> list
D <mean>       - deterministic distribution
U <low> <high> - Uniform distribution
+              - binary addition
neg            - unary negation
-> D 3
-> U 2 8
-> neg
-> +
-> amean
-2
-> samples 10
-> mean
-1.647
-> quit
 Assignment#2                      CSC407                                    1




                                 The Stack




                        D(3)                D(3)
                                                                  +

                                             neg         neg
        D(3)            U(2,8)
                                            U(2,8)       U(2,8)       D(3)

D 3             U 2 8             neg                +

 Assignment#2                      CSC407                                    2




                                                                                 1

								
To top