2D Graph Tool for Plotting & Animating Expressions of the Form of "y = f(x,t)"
This VCSSL program is a simple tool which plots the expression (formula) of the form of "y = f(x,t)" to the 2D graph, and plays it as animation.
How to Use
Download and Launch this program
At first, click the "Download and Run" button at the above of the title of this page by your PC. Then a ZIP file will be downloaded, so please extract it (by selecting "Extract All" from right-clicking menu).
Next, open the extracted folder and execute "VCSSL.jar" (Executable JAR File). You may execute the JAR "VCSSL.jar" file by double-clicking, or opening by Java® Runtime Environment (JRE) from right-clicking menu, etc.
If you want to edit this program...
Execute "VCSSL_Editor.jar" instead of "VCSSL.jar" to edit this program. Then a program-editor window will be launched. You can execute the edited program by clicking the blue-triangle button at the left-bottom of the editor window.
This program is written in the VCSSL programming language. It has simple C-like syntax, so if you are accustomed with C-like language (e.g. C, C++, C#, Java®), you might be able to custom this program.
Windows and UI
The following two-windows will be launched. The left one is the input-window, and the right-bottom one is the graph-window. In addition, the animation-window will be launched when SET button have clicked.
Input an Expression to Plot
At first, please input an expression you want to plot into the text field labeled with "y(x,t) =" at the top of the input-window. There are some points to write the expression:
- Use small character for "x" and "t".
- Arithmetic operations such as "+" and "-" are available. However, some symbols of operators are different with handwriting expressions. Use "*" for multiplication, and use "/" for division.
- Multiplication and division are prior in calculation order than addition and subtraction.
- You can mathmatical functions such as "sin" and "cos" in the expression. The value of circle ratio is available as "PI" (capital character).
- The exponentiation operator is "**". For example, x2 should be written as "x**2" in the expression.
Plot a Graph
After inputting the expression, please click the "SET" button at the middle of the input-window, and the expression will be plot to the 2D graph.
The graph will be drawn as a lines-and-points* graph of "x-N" nodes. You can modify the value of "x-N" on the input-window. Larger value of "x-N" makes graph more smooth.
* If you plot lines-only graph, please see Other Features.
When you have clicked the SET button, the animation-window will be launched. Then click the PLAY button on the animation-window to play the animation.
The animation will be played by repeatedly re-plotting the graph with changing the value of the time-parameter "t" little by little.
The label of the PLAY button changes to "STOP" during the animation is playing. If you want to stop the animation, click the STOP button. You can change the value of the time-parameter "t" manually by the slider even when the animation is stopping.
With the default settings, the graph will be plotted as a lines-and-points graph. If you want to plot a lines-only graph, please disable the checkbox of "With Points" from the "Option" menu at the top of the graph-window. In addition, if you want to change the width of lines, please disable and re-enable "With Lines" option, and you will be asked the line width.
You can modify other settings from "Edit" menu at the top of the graph-window, e.g. X & Y ranges of the graph, labels of X & Y axes, legends for each lines of the graph, etc.
You also can save settings and save the image of the current graph, from "File" menu at the top of the graph-window.
The 2D graph software "RINEARN Graph 2D" is used as the graph-window of this program. If you like UI and operability of the graph-window of this program, please try to use RINEARN Graph 2D for your data-analysis use.
» More Details
This code is written in VCSSL.