Write any neccasary auxilary functions here:
Write the code that will go into your main function here:
Include standard Math functions so you can write sqrt instead of Math.sqrt. Also includes: sin, cos, tan, acos, asin, atan, log, exp, ln, floor, ciel, round, rand, pow, pi and e.
Note: You can use engineering notation. So you can write 5E5 or 6.23E-3 to mean 5*10^5 and 6.23*10^-3 (respectively).
NOTE: These are very simple examples, don't expect perfect (or even good) code.
- uses Easy JS's special WriteLine function
- As you would imagine.
- Asks for A, B, C in A*x^2 + B*x + C = 0, and the solves for real values of x. No imaginary.
- Shows the number of letters and words in any text entered in the 'Input' section. Very crude, words=number of spaces+1. 'Run (Multiple)' mode only!
This is just a simple little tool that lets you code quick algorithums from anywhere.
I often find that I'm in class, or at someones house, and the best way to solve something is with
a little code, but this can be a tricky to do as most people don't have a compiler installed.
hit the button and you get your results. Here is an explanation of the two different 'Run' buttons.
Run (Single) - Creates a new page and automatically runs the code Run (Multiple) - Creates a new page with a button on it, click the button and it executes the function you wrote above. This also allows you to run the code multiple times without refreshing.
In both modes you can use the special Write and WriteLine functions which
output text to a console looking thing above. Also the GetLine function gets whatever input is in the input area. This is great if you just need to get some quick output. Of course
I wrote this page pretty quickly one day, and it's really just here as a convenience to me, if you find it useful that's great. If you have any questions for comments, send me an email at firstname.lastname@example.org.