works for octave (but not for jmathlib):
a=0; for i=1:10; a=a+i; endfor
in octave a=55 in jmathlib a=0
also following jmathlib code causes error in octave and vice versa
k=1;total1=0;while(k<=5){total1=total1+k;k++;};end
k=1;total1=0;while(k<=5) total1=total1+k;k++;end
this kind of incompatibilities is not very nice ...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
same works pretty well for octave
works for octave (but not for jmathlib):
a=0; for i=1:10; a=a+i; endfor
in octave a=55 in jmathlib a=0
also following jmathlib code causes error in octave and vice versa
k=1;total1=0;while(k<=5){total1=total1+k;k++;};end
k=1;total1=0;while(k<=5) total1=total1+k;k++;end
this kind of incompatibilities is not very nice ...