Input
Version 1.5, added JavaCalc LITE as a light weight popup window but no Help. Add unlimited Undo and Redo button. You can recall any historical input in the session. A box under the Redo indicates the history page number. findroot now accepts to enter equation balanced by "==".
Version 1.4, added findroot for finding a root of equation in one variable. Try findroot( "x*x-2", 1), findroot( "x-sin(x)", 1)
Version 1.3, updated the help keyword link to JavaScript Reference at Netscape. Now supports more than 500 JavaScript keywords. Try ?FORM, ?sin
Version 1.2, supports extended factorial that means non-integer n, the numerical value of factorial(n) is given by gamma(1 + n). Thus it has now gamma function and handle negative numbers as well. Try factorial(3.45), factorial(-1.23), factorial(-10).
JavaCalc is a simple demonstration of JavaScript (originally called LiveScript by Netscape). You can evaluate your expressions in the above INPUT box.
Since Netscape released version 3.0.1, JavaScript becomes less memory leak. As a result, I am happy to advise you that the JavaCalc can support more JavaScript features and it works as a JavaScript Interpreter. For example, you can test your own functions, loops and other statements on the JavaCalc. Not necessary to write the code in HTML format and open it by Browser. I have been developing and testing the JavaScript code on the JavaCalc because very easy to test on major browsers. JavaCalc may have limitation to use as Interpreter. However, I believe, you can still enjoy its powerful functions, variables and multi-expression capabilities.
Note 1) Variable and function names are caps sensitive. Note 2) Some enhanced script commands are not compatible between Netscape and Internet Explorer. Note 3) Keyword compatible does not mean runtime compatible. You should test both environment. For example, Netscape try to keep definition through the session but IE does not. Netscape Communicator 4.7 seems more buggy than IE5.0. One difference is that JavaCalc allows to use mathematics function without typing "Math" method. For example, you can type sin(0.5) as a short-cut instead of Math.sin(0.5).
In addition, actually you don't need to connect to my home page every time. Because, it uses Netscape 2 and later built-in functions. Click here and saves the page through the Netscape menu View/Document Source. When you need the JavaCalc off-line, drop the saved source onto Netscape. You can use it like a JavaScript Interpreter. Return to FRAME mode. JavaCalc can do more than calculator. Enjoy, Ken
Try the following. You may copy&paste.
Won't you see more samples? Send me your wish, I will add in!
See more information about JavaScript at JavaScript Development Central at Netscape.
2/29/2000 1.6 Minor enhancement to search keyword by ? as a workaround for Netscape bug. 2/27/2000 1.5 Added JavaCalc LITE as a light weight popup window but no Help. Added unlimited Undo and Redo button. 2/13/2000 1.4 Added findroot function. 2/10/2000 1.3 Updated help keyword link. 2/6/20000 1.2 Added gamma function to extend factorial for negative and non-integer. 2/3/2000 Thanks Franz for his maths online to extend JavaCalc with ^ and ! functionality as well as to give me a hint of expanding factorial by gamma. Also thanks for the colorful frame. 9/15/97 1.1 Added help function (?). Tuning tags to improve display compatibility. 9/10/97 1.0a Eliminate global variables that makes potential conflict with user operations. 9/7/97 1.0 Cosmetic changes, update introduction. Announced interpreter capability. 10/5/96 1.0b6 Removed window.register to prevent error. Thanks Tina again! Added factorial, round2. 4/27/96 1.0b5 Added TARGET="_TOP" to fix frame error. 3/18/96 1.0b4 Hid script contents from old browsers. 2/14/96 1.0b3 Added Frames. 2/12/96 1.0b2 Added table form, buttons, clear. 2/11/96 1.0b1 Created prototype.
Return to MathCollections