Discussion Thread
UltimaCalc
Message Thread
The Ultimate Windows Math Toolbox
Posted in the UltimaCalc Forum.
Saving equations
In the main window I can enter variables and an equation.
For example: R1=10;R2=100; (R1*R2)/(R1+R2)
I press Enter and I get my result.
My question is how do I save this (variables and equation)
so I don't have to enter it in every time. I just open the app
and select a file and then change the value of R1 and R2 then
hit Enter.
Is there a way to do this and I'm just missing it?
Any help would be appreciated.
Saving equations
What you need to do is to create a function. Select the menu item "View / User variables etc.". Right click inside the window that opens, and select "Add new function".
A window opens with a box into which you type a function name, say, 'parallel'.
Another bos has the title 'Parameters', with two brackets shown. Inside the brackets, type r1, r2
Now enter the function definition: r1*r2/(r1+r2)
Click on OK
Close the two windows that opened, so that you are back in Ultimacalc's main window.
You can now enter parallel(20, 30) and the result of the calculation will be computed, in this case 12.
Ultimacalc will save the definition for you.
The names you entered as parameters are not treated as normal variables, but are local to the function, so you can use r1 and r2 as normal variables and the function will not affect them.
Saving equations
What you need to do is to create a function. Select the menu item "View / User variables etc.". Right click inside the window that opens, and select "Add new function".
A window opens with a box into which you type a function name, say, 'parallel'.
Another bos has the title 'Parameters', with two brackets shown. Inside the brackets, type r1, r2
Now enter the function definition: r1*r2/(r1+r2)
Click on OK
Close the two windows that opened, so that you are back in Ultimacalc's main window.
You can now enter parallel(20, 30) and the result of the calculation will be computed, in this case 12.
Ultimacalc will save the definition for you.
The names you entered as parameters are not treated as normal variables, but are local to the function, so you can use r1 and r2 as normal variables and the function will not affect them.
Saving equations
Thank you for the instructions.
Unfortunately, after selecting "View / User variables etc." and right
clicking nothing comes up. I tried it in XP and WIN7.
I forgot to mention that I'm using the trial of the standard version. Maybe it is disabled or only available in the Pro version.
Thanks for your help.
Saving equations
Got it to work finally.
The User Variables window didn't have anything in it.
So, I did the equation in the main window again.
Now the User Variables window had those variables
from the main window. I was then able to right
click and add the equation there.
Now it's time to play with it some more.
Saving equations
There is a minor bug in the Variables window -- the right click only works if you do it on an existing line. To define a new function, it doesn't matter what line you right click on.
Unfortunately, if there are no variables, constants or functions defined, there is nothing to right click on!
The remedy is to define some variable. Close the Variables window. In the main Ultimacalc window, create a variable by typing something like:
A=0
and hit Enter.
The variable 'A' is now defined, and you can go back to the Variables window, right clidk on it and define your function.