Startpage Freeware Guestbook Miscellaneous


JMathCmd - an applet for usual mathematical operations
This applet can be used for some usual mathematical operations and solving real equations.
Short information and usage examples can be found on this page below the applet itself. For detailed information the user's guide should be consulted.

Important
This applet is presented to the public without any guarrantees to its corectness or fitness for any purpose. Anybody using it should do it at his/her own risk.
Bug reports can be sent to: amate2[at]gmail[dot]com




A short guide to the application
  1. Expressions: the parser of the applet understands expressions in the usual mathematical notations (more or less).
    • operators: +, -, *, /, ^ - add, subtract, multiply, divide, power
    • operands: real numbers in decimal notation and x for the variable
    • predefined functions: abs, sqrt, sin, cos, asin, acos, sinh, cosh, ln, lg, tor with obvious meanings, except tor which stands for to_radians, converting a value in degrees into radians
    • mathematical constants: p - the ratio of a circle's circumference to its diameter - approx. 3.141592, and e - Euler's number (Napier's constant), approximately 2.718281828.
  2. Available commands:
    • [ev ]{expression [argument]} - evaluates an expression (for an argument, eventually).
      e.g.2*p and 2*p*x 1 is evaluated to 6.28.
    • eva {argument} - evaluate the current function for an argument
    • f {expression} - declare a new function. The newly declared function (if the expression is deemed correct) becomes the currently selected one.
    • p {space separated coefficients} - declare a new polynomial function.
    • sel {n} - select the nth function (commands like eva and seq use the selected/current function)
    • seq [xl xr] - solve the selected/current equation. If xl and xr are specified, a root is searched in the interval [xl,xr].
      If the current function is a polynomial, and no start intervals are specified, all roots are determined using Bairstow's method.
    • rs[can] [xl xr] - scan for intervals which may contain roots. If the optional argument is specified, intervals are searched for in [xl, xr], otherwise the default interval [-20,20] is scanned for roots.
    • dv1 {x0} - compute the first derivative of the selected function in x0
    • dv2 {x0} - compute the second derivative of the selected function in x0
    • int {xl xr} - compute the finite integral of the selected function for [xl,xr]
    • ls - list the declared functions. The currently selected one is marked with <->
    • mat a11,a12,...,ann - declare a matrix
    • lsm - list the currently selected matrix
    • lsma - list all declared matrices
    • selm n - select the nth matrix
    • det [n] - compute the determinant of the current (or n-th) matrix
    • ? | help - display summary help
  3. Using the keyboard:
    • The Enter key can be used to start processing the command entered in the commandline(the yellow field). The same effect can be obtained using the Process button.
    • The Escape key can be used to clear the commandline.
    • The Up and Down keys can be used to parse through the latest entries in the commandline.
  4. Known limitations:
    • The application stores only the latest 10 declared functions and the latest 5 declared matrices. But, it also stores the last 15 expressions entered (you can access these using the Up and Down keys).
    • For many equations, just using the command seq, without specifying the start interval, the command will not work (no solutions will be found). In such cases, specifying a small start interval will be of help. For this, one should use the command rscan (or the equivalent rs) to get the list of intervals which may contain roots.
    • When solving a polynomial equation using Bairstow's method, in some cases, the found roots may be inaccurate (very!). This is because of a poor implementation of the method (my bad). In the case of real solutions (roots), you may check them using the command eva(for a solution, the result should be approx. 0).
  5. Examples


Free hosting offered by www.polarhome.com