You can use AWork to perform the following calculations:
You can write programs in Octave (Matlab) language and run them using the “run” button. If your code does not contain “import” statement (as for BeanShell), the program will be recognized as symbolic calculations and will execute it. Look at the output using the “Output” button.
Symbolic calculations are based on jMathLab package and use Matlab/Octave language. jMathLab is a derivative of the Jasymca program, but contains additional packages to bring it closer to Matlab and Octave programs.
You can learn about it using the jLearn tutorial. Note: Java is required to run interactive examples. You can find a reference manual for all implemented functions and methods of jMathLab using this link.
Type the following code example:
To output text, use disp method (as in Octave)
And press “run”. Look at the output pressing “Output”.
You can also print any variable as:
You should save your code with the extension “.m”, since the syntax matches to Octave/Matlab. Read more details in Octave-mode section.
Let us give another example: symbolic integration. The code is shown here.
It prints the answer in the “Output window”.
One can also plot data in the usual way using the “plot” command. It should be noted that not-all plotting feature are not available yet, but most of them are already available.
Here is a small example:
x=0.01:0.01:50; y=1./(1+0.5*x.*x); plot(x,y);
Pres “run” and then “graph”. You will see the output:
Similarly, one can plot functions:
this code plots cos(x) function with the step 0.1, and then overlays the function sin(x).
— Sergei Chekanov 2012/07/16 14:50