Mapping of axes
This page shows some of the
Please refer to the tutorial.
If you want to visualize a function
f(x) in equal intervals
within a certain mapping, you can use the code shown below. Of course
you should replace
Math.pow(10, ... ) with
Math.pow(2, ...) or
Math.exp(...) if you use the mappings
Note that the following code draws a straight line (the red line in the figure below) on the graph, not a curve of y = x (the black curve).
The following two codes give graphically the same result. However, in one case the angle is internally computed in degree, while in the other case, radian are used as unit.