Page 3 sur 3

Re: Release of FormulaPro v1

Message non luPosté: 04 Fév 2016, 18:46
de slarty bartfast
Hi,

I'm wondering if there is a version for OS 4?

Thanks :D

Re: Release of FormulaPro v1

Message non luPosté: 04 Fév 2016, 19:15
de Adriweb
It should work as-is on OS 4 - have you encountered any specific issues?

Re: Release of FormulaPro v1

Message non luPosté: 05 Fév 2016, 22:08
de awinterstale33
Adriweb a écrit:Hi,

awinterstale33 a écrit:Enter in a variable for a value instead of a number.

Possible, yes, however we had taken extra steps (deleting all variables when solving) not to allow it "trivially". Because it's using solve() to do the calculations, user variables may interfere and it would be bad to have some value already there as a value for the solved variable, for instance... But if you know what you are doing and you are sure it won't interfere with the solving, you can simply declare your variable (with a prefix, maybe ? Like "my_theta" instead of "theta" if you wanted that) and use Lock my_theta. That way, FormulaPro won't delete it before solving and you will be able to use it as a variable/value.

awinterstale33 a écrit:Enter a global function for a value

That works the same way. Declare it and Lock it.

I've tested that successfully as well :)
Note that when you press enter it will evaluate the expression/function so you'll see the result directly, it won't keep the original input.


Hi Adriweb, I haven't been able to replicate this. Could you give me a little more direction? I don't have much experience coding with Lua but only Java and Vba a little for school. Do I declare the variables in the LUA editor or on the calc?

Re: Release of FormulaPro v1

Message non luPosté: 05 Fév 2016, 23:20
de Adriweb
The variables have to be declared (/initialized) and Locked from the calculator app, not from Lua.

So, you go into a calculator tab (insert one (Ctrl-I) after the FormulaPro one, for instance), and do : i:=42 then Lock i.
Now FormulaPro will not modify it and will be taken into account in calculations when you use it as a value.

Re: Release of FormulaPro v1

Message non luPosté: 06 Fév 2016, 00:13
de awinterstale33
Awesome! Thanks! I'm going to try it right now...

I tested this with the ohm's Law page.
If I declare i:=is and lock it, and enter in "i" or "is" into the current field, it says invalid input. I was hoping for the other fields to be updated with the calculated value, except with my variable for i instead of a numerical value.
However, when I copy and paste the formula back into the calculator page and hit enter, all the variables are replaced with the numerical values except i is replaced with is. So it works if I copy and paste it, how I was hoping. Am I doing it wrong still or it that the only way it will work? (Which is still awesome btw.)