Carl@image-ination.com
The generated code should work as desired. However, it is not as efficient as possible. For example, it overuses eval() (which evaluates an expression as a number, if possible) and parseFloat() (which converts a string to a number when possible). This should not cause a problem.
MyTestAssistant© allows up to 26 variables this tool will create solutions with up to 7 variables.
This requires Netscape 4.0 or Internet Explorer 4.0 for full functionality.
How to use:
- To generate the code to calculate Log(sqrt([x])), enter:
- click sqrt
- click Log
- To generate the code to calculate sqrt([x]2+([y]+3)2),enter:
- click ^2
- shift to work window
- click clr (Note: On a Mac NN4+ fails to clear due to a 'bug'. Do so manually)
- click [y]
- click +
- click 3
- click ()
- click ^2
- shift to main window and answer + to the query
- click sqrt
The reason the second window is necessary is when a function is called it is assumed that it is applied to everything in the current window. Thus
- click ^2
- click +
- click (
- click [y]
- click +
- click 3
- click )
- click ^2
- click sqrt
would produce
sqrt(([x]2+([y]+3))2)
instead of
sqrt([x]2+([y]+3)2)
By using the auxiliary window repeatedly you can, add, subtract, multiply, or divide any number of functions. Thus
sqrt([x]2+([x]+3)2-([y]-5)2)
is just as easily managed. Very complex functions can be generated in this manner.
There is now a conditional allowed for the variable [x], but not for [y], it is in the form of
if [x]<comparator>Number->DoThis - otherwise - Do This.
The allowed <comparators> are:
If you are going to use this feature you must use it first after selecting the problem number.
- To do so click the IF button, you will be asked to choose a comparator and then a number to compare [x] to. This can be a fixed number or any of the other variable [t]-[z].
- Next author the formula you wish to use if the condition is satisfied.
- When you finish press the ELSE button. The formula you authored should be cleared (but not on a Mac with Netscape 4+ - see note above) and you should then enter the formula for the result if the condition is not satisfied.
- Press the EndIf button and then the Done button and you are finished.
When you finish by clicking 'Done' you will be given the chance to enter a numerical value for [x] and [y] if you used it and any other variable you used, which will allow you to check your formula.