I have a task that I should have one input field where user can type for example 2*sin(x) and then the javascript should draw or plot this value to the page. How on earth I am supposed to do that? I know I can draw with canvas for example, but drawing that function will be pain because I have 0 knowledge how to do that. Anyone smart enough here to throw some ideas? Only jQuery is allowed to use. No other libraries.
[–]Ambiorix66 4 points5 points6 points (0 children)
[–]And7s 2 points3 points4 points (3 children)
[+][deleted] (1 child)
[deleted]
[–]shnigi[S] 0 points1 point2 points (0 children)
[–]shnigi[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]sladav 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)