Ok, lets pitch up with some basic calcs :
Oh yes, the octave:> thingy is the "prompt"....
octave:> 1 +1
ans = 2
octave:> 1+100;
octave:>
"Hey, hey hey .... hold your cats right there bro. Ok that 1+1 printed the ans as 2, but what about that 1 +100 calculation?? It didnt print... oh !! bugs right??"
Okay,
We may prevent octave from outputting results to the terminal by appending our commands with the semicolon “;”.
and if you want the results of your command to display ,do not append your command with a semicolon .
So going forward , we may try out some combinations like :
octave:21> 2 * 3
ans = 6
octave:22> 9 - 45
ans = -36
octave:23> 67 * 20
ans = 1340
octave:24> 23 ^ 15
ans = 2.6664e+20
octave:25>
Oh, those :21, :22s are the command numbers actually :):) ( i guess so :) )
No comments:
Post a Comment
So, ready to fumble ?? :)