Omnimaga

Omnimaga => News => Topic started by: Adriweb on June 21, 2012, 04:20:41 pm

Title: Release of FormulaPro for the Nspire
Post by: Adriweb on June 21, 2012, 04:20:41 pm
Hello everyone,

Today it is with great honor and pleasure that we, Jim Bauwens and I, are finally announcing the release of FormulaPro !

What is FormulaPro ?
Here are the technical details : FormulaPro is a TI-Nspire (OS 3.x) document whose main content is a Lua script. Yep, all made in Nspire-Lua (http://www.inspired-lua.org). Indeed, it is the only way so far / right now to "properly" achieve what we do on FormulaPro (completely graphical UI, math calculations...).
FormulaPro is also free, of course, and open-source (https://github.com/adriweb/EEPro-for-Nspire/) (LGPL license) ! :-)


Hmm ok, but what does it do ? :P
Well, here you go : some of you may already know what's called "EEPro" or "MEPro" for the TI-89 and TI-92. It is an official program that TI puts in the 89 by default. If you don't know it, EEPro-89 is basically a program described by TI like this: "This application solves the problems of electrical engineering. It is composed of three modules: Analysis, Equations (700 equations grouped into 16 subjects) and Reference. " In short, a complete and very powerful application about Electrical Engineering. Well, FormulaPro is the 2nd part ("Equations") of our project to port the EEPro-89 suite to the Nspire.
But we improved it, naturally. A lot. (And we already have plans and written code already ready for version 2.0 which will be even more awesome and more powerful.)

What FormulaPro right now is capable of, along with its website, is :
-to be able to run on any OS 3.x and any Nspire model and to be able to run on the computer software too with auto-resizing frames
-Mouse and keyboard input support, on both Software and Handheld
-to be able to let users generate their own pack of equations, smartly (variables and units are bound), within categories and sub-categories,
-to be able to solve intelligently solve the equations it's given, contrary to the 89 version, where the user had to select what equations had to be used : Indeed, here you just have to enter what you know already, and it will automatically try to solve for what it can.
-it can very easily let you chose the unit/subunit you want to enter your data in. (for example Hz/kHz/MHz, °C/°F/°K etc.)
-it can show you the used formulas of the current sub-category in "PrettyPrint"


Great ! How do I use it ?
-Be sure to run Nspire OS >= 3.0. We recommand version 3.2.
-You can then either use the "demo" database (a part of the original EE-Pro one) available here (and also attached) : https://github.com/adriweb/EEPro-for-Nspire/blob/master/EEPro.tns?raw=true
 … or either starting your own database with our online FormulaPro Database maker which lets you easily create categories, subcategories, equations, units and subunits etc. It is available here: http://education.bwns.be/FormulaPro/
-If you were on the online generator, click the "Generate" button at the bottom of the page.
-Transfer the .tns to your calculator or in the computer software and open it.
-Select the category and the subcategory, and begin filling the input fields of the data you already know. Press enter or change focus, and it will start auto-solving.
-Enjoy !


Screenshots time !
Here are 4 screenshots showing pretty much all of FormulaPro. They are not related to each other.
(http://i.imgur.com/QtMeX.jpg), (http://i.imgur.com/J7vJ0.jpg),
(http://i.imgur.com/ZaqAY.jpg), (http://i.imgur.com/8qud2.jpg)


What's next ?
Well, we will try to complete the entire Formula library from the original EEPro-suite. (This is just a matter of time, so it's no problem, really)
In general, the plan is to be able to do everything (and more !) that the TI-89 version can do.

So, here's what we also planned for version 2.0 :
-Database Editing on-calc !
-An even more powerful solving core
-Smart Search (Don't browse in the categories : just enter the units you have and it will try to figure out which equatinos to use directly)
-Pictures associated with categories (circuits explanations etc.)
-Input data directly into the solver using Vernier sensors!
-Multi-language support
-Ability to graph results


------------------------
Download (latest so far is v1.4b) :
Latest version for all OSes : https://github.com/adriweb/EEPro-for-Nspire/blob/master/FormulaPro.tns?raw=true
------------------------


Please report any bug or comments if you have some,
Good Luck and Have fun,
The FormulaPro team,
http://tiplanet.org and http://www.inspired-lua.org


(to the admins : if you think it sadly doesn't fit in news, well, you can move it under Nspire Lua projects)

Edit : version
Title: Re: Release of FormulaPro for the Nspire
Post by: aeTIos on June 21, 2012, 04:24:28 pm
I don't think I'll need this program (at least not in a few years), but it looks very cool (It's definately going to be on my nspire)
Title: Re: Release of FormulaPro for the Nspire
Post by: Adriweb on June 21, 2012, 04:45:23 pm
Thanks !

The whole point of this is to create your own set of equations corresponding to your school level :)

Tell us if you ever make some :P





Edit :
Aaaaaaaaand a bug report already :P We are fixing it.
Don't forget that the latest version will always be here : https://github.com/adriweb/EEPro-for-Nspire/blob/master/EEPro.tns?raw=true

Edit2 : fixed
Title: Re: Release of FormulaPro for the Nspire
Post by: renatose on June 21, 2012, 05:54:32 pm
This is great! I was looking forward to this and its finaly here!

Are you intending to join the main capabilities of EEPro and MEPro as an EProN (Engineering Professional Nspire Software, do you like this name? xD) in the main trunk of EEPro for Nspire?
Title: Re: Release of FormulaPro for the Nspire
Post by: flyingfisch on June 21, 2012, 05:58:31 pm
Is this coming to prizm soon?
Title: Re: Release of FormulaPro for the Nspire
Post by: Jim Bauwens on June 21, 2012, 06:11:54 pm
Sorry, I don't think there will be a prism version ever.
Also, something we forgot to mention is that it requires a CAS calculator. We are busy making a CAS in lua, but it will still take some time before we can use that.
Title: Re: Release of FormulaPro for the Nspire
Post by: aeTIos on June 21, 2012, 06:17:44 pm
You can't use this on a non-cas version? Ok D:
Title: Re: Release of FormulaPro for the Nspire
Post by: Jim Bauwens on June 21, 2012, 06:25:08 pm
It will run, but you will not get results. It is because the math is so complex :(
Title: Re: Release of FormulaPro for the Nspire
Post by: AzNg0d1030 on June 21, 2012, 09:46:32 pm
So this is what EEPro was all about! This is amazing... Thank the FSM that I have a CAS
Title: Re: Release of FormulaPro for the Nspire
Post by: DJ Omnimaga on June 21, 2012, 10:15:46 pm
Sorry, I don't think there will be a prism version ever.
Also, something we forgot to mention is that it requires a CAS calculator. We are busy making a CAS in lua, but it will still take some time before we can use that.
Can PTT block Lua programs too? It might be a good idea if a CAS is going to be made in Lua, since CAS models are disallowed in tests for a reason.
Title: Re: Release of FormulaPro for the Nspire
Post by: Jim Bauwens on June 22, 2012, 12:12:19 am
The CAS will never be as good, and it will only be used for solving of formulas. No problem there :)

(PTT removes access to all document, even Lua so there will not be a problem anyway)
Title: Re: Release of FormulaPro for the Nspire
Post by: Adriweb on June 22, 2012, 04:21:12 am
This is great! I was looking forward to this and its finaly here!

Are you intending to join the main capabilities of EEPro and MEPro as an EProN (Engineering Professional Nspire Software, do you like this name? xD) in the main trunk of EEPro for Nspire?

Thank you :)

And yes, this "FormulaPro" is basically a standalone version of the 2nd part of the whole EEPro port on the Nspire.
We'll keep you updated on the overall port :P

What's basically missing is the "Analysis" part, which is huge.
The "Reference" part is almost done already, though.
Title: Re: Release of FormulaPro for the Nspire
Post by: Jim Bauwens on June 22, 2012, 09:16:22 am
And there is another update available :)
It contains a fix for an endless loop in solving.
Remember, you can always download the latest build at https://github.com/adriweb/EEPro-for-Nspire/blob/master/EEPro.tns?raw=true .

Thanks :)
Title: Re: Release of FormulaPro for the Nspire
Post by: Lionel Debroux on June 22, 2012, 01:12:49 pm
Quote
(PTT removes access to all document, even Lua so there will not be a problem anyway)
As we all know, that's the theory; in practice, things are very different :D
Title: Re: Release of FormulaPro for the Nspire
Post by: Adriweb on June 22, 2012, 01:33:13 pm
I fixed some things and added a special 3.2 version which contains an error handler so it now is "impossible" to crash it :P (well, I haven't a way to do so, so far :D)

OS 3.2 specific version with Error handler : https://github.com/adriweb/EEPro-for-Nspire/blob/master/testing/FormulaPro32only.tns?raw=true
Latest version for all OSes : https://github.com/adriweb/EEPro-for-Nspire/blob/master/EEPro.tns?raw=true

(This is now Version 1.1b)


Edit : By the way, here's the Error handler in action :
(http://i.imgur.com/IBbUa.jpg)
Title: Re: Release of FormulaPro for the Nspire
Post by: apcalc on June 23, 2012, 08:21:37 am
Very nice program!  I am sure this will be extremely useful to many! :)
Title: Re: Release of FormulaPro for the Nspire
Post by: radioactivemint on July 14, 2012, 05:00:46 pm
I just registered to say thank you for making this program! I just bought the nspire cx cas a few days ago, and I'm enjoying its capabilities over my old 83+. I look forward to more Formula Pro updates.

Any plans to make a chemical engineering variant?
Title: Re: Release of FormulaPro for the Nspire
Post by: critor on July 14, 2012, 06:35:17 pm
What is great with FormulaPro, is that you can add your own formula pack. ;)
Title: Re: Release of FormulaPro for the Nspire
Post by: Adriweb on July 15, 2012, 02:14:56 am
Indeed, and feel free to share your work !

There will also be updates so the Formula creation page will be able to save/load pack.

Future updates of FormulaPro itself will also include a better/more complete physics default database.
Title: Re: Release of FormulaPro for the Nspire
Post by: DJ Omnimaga on July 15, 2012, 03:07:23 am
I just registered to say thank you for making this program! I just bought the nspire cx cas a few days ago, and I'm enjoying its capabilities over my old 83+. I look forward to more Formula Pro updates.

Any plans to make a chemical engineering variant?
Heya and welcome here. Glad you enjoy your calculator. Feel free to ask questions on the forums if you ever need assistance :)
Title: Re: Release of FormulaPro for the Nspire
Post by: radioactivemint on July 18, 2012, 03:14:37 am
Fantastic. Thanks for the warm welcome, folks.

Pardon my ignorance, but what materials can you point me to to set me on the path towards learning how to make my own formula packs?

If I ever get a particular pack to a point at which I am happy with it, I will certainly share! It'll be slow progress, however. I'm still pretty new to my major and have a ways to go and much to learn.
Title: Re: Release of FormulaPro for the Nspire
Post by: Jim Bauwens on July 18, 2012, 03:24:05 am
http://education.bwns.be/FormulaPro is the database creator.
http://education.bwns.be/FormulaPro/eepro.html is the database editor with the EEPro database loaded.

The structure of the editor might be a bit complex in the beginning, but once you get the hang of it it isn't so bad :)
Title: Re: Release of FormulaPro for the Nspire
Post by: Nick on July 22, 2012, 05:29:22 am
what does TI say of this state of the program? i mean, did you already send it to them, or is it just an initial realease for us?
Title: Re: Release of FormulaPro for the Nspire
Post by: Adriweb on July 22, 2012, 10:07:18 am
Hmm, yes, they are really interested in this TI-Planet project, actually :P
We don't have any special version for whoever, whether it's TI or anybody else.
The latest things is on GitHub, and same for everyone ^^

Anyway, I think I'll have some time soon to work on EEPro/FormulaPro in general and also to put more formula in the 'default' EEPro datatbase :)
Title: Re: Release of FormulaPro for the Nspire
Post by: Jim Bauwens on July 22, 2012, 03:00:24 pm
They 'loved' it :P
Title: Re: Release of FormulaPro for the Nspire
Post by: Adriweb on August 09, 2012, 03:54:46 pm
And...... Big update :D

I made quite some improvements in version 1.2, over 1.1 (but with a lot of under-the-hood stuff).

Video :-)


Changelog :
- First, probably what you will notice the most : Animations ! Thanks to Levak's animation framework ;-) So, this basically makes "screens" (frames) scrolling around, as seen in the .gif above.
- Re-did the Screen push/remove engine to work correctly with the animations.
- nSolve() used instead of solve() which makes the whole thing works on non-cas devices :-)
- Rounding big numbers in the results
- Put the Reference part inside of FormulaPro (Tab key on home screen). We decided that we'll stick with the "FormulaPro" name for now (and not EEPro-Nspire) since we won't do the Analysis part very soon.
- Code reformatting
- Timer bugs fixes
- Resizing issues fixed
- List widget improvement -> last/first brings you to top/bottom when you press down/up. (<- respectively)
- ClearKey support for input widgets.
- Pre-calculate entered value in solver input if valid (so the user can enter calculations inside the input and it will work)
- Fixed bug about timer multiplier adjustment (depending on the version)
- support for both "-" symbols (minus and negative) inside solver


Download :
http://tiplanet.org/forum/archives_voir.php?id=6034  or  https://github.com/adriweb/EEPro-for-Nspire/blob/master/FormulaPro.tns?raw=true (https://github.com/adriweb/EEPro-for-Nspire/blob/master/FormulaPro.tns?raw=true)


We'd love to hear any feedback :D
Title: Re: Release of FormulaPro for the Nspire
Post by: intelx86 on September 17, 2012, 11:46:58 am
Hello everyone!
I am a happy owner of a TI Nspire CX CAS and I have just discovered this "state of the art" applications.
I would like to know, if it is possible to update the http://education.bwns.be/FormulaPro/ to the latest version of FormulaPro (or EEPro) as the current one seems a bit outdated. Furthermore, as I happen to be a AJAX/PHP hobbyist programmer, I would appreciate it if you could make an svn where we could get all the necessary files for the web based database creator, as I would like to implement an xml input/output to save and load databases to the web application.

Thanks for your time, and once again congratulations on your good work.

PS: The main field of my work is in civil engineering, and I would like to sumbit to the community a CVEPro database.
Title: Re: Release of FormulaPro for the Nspire
Post by: Jim Bauwens on September 17, 2012, 11:50:11 am
The TNS here https://github.com/adriweb/EEPro-for-Nspire should contain the entire EEPro database.
I'll see to add it to the online database when I get some time. Also, I'll see if I can create a repo for the online tool.

Thanks :)
Title: Re: Release of FormulaPro for the Nspire
Post by: intelx86 on September 24, 2012, 05:44:36 am

Code: [Select]
y = x^2, x<=0
y = 2*x, x>0
Title: Re: Release of FormulaPro for the Nspire
Post by: Jim Bauwens on September 24, 2012, 01:03:52 pm
I'm quickly going to answer some questions here.
1) Currently not, but this can be added if needed
2) Yes, it should be listed in the same manner as defined in the units file
3) Default values aren't integrated, but possible. However couldn't this lead to accidental wrong results ?
4) Could you explain more in detail ? I don't quite understand
5) Right now not, but this sure is a good idea !
6) Adding a different function that uses same variables should work, no need for anything special

Also, sorry for not hosting the web code yet, I've been pretty busy the last days with college starting..
Title: Re: Release of FormulaPro for the Nspire
Post by: intelx86 on September 24, 2012, 02:56:44 pm
Code: [Select]
While in Units.lua (Git version) I have:
[code]Units["Pa"] = {}
Units["Pa"]["MPa"] = {Mt.M    , 0}
Units["Pa"]["GPa"] = {Mt.G    , 0}
Units["Pa"]["hPa"] = {Mt.h    , 0}
Units["Pa"]["bar"] = {1/100000, 0}
Units["Pa"]["atm"] = {1.01325 , 0}
the output is
Code: [Select]
Pa
hPa
atm
GPa
bar
MPa
which is totally confusing.

When I say default values, I mean either an implementation of a dropbox, in the same manner to the units, where I can select from predefined values or a default value in case a variable is not set.

Furthermore, default units, are really useful, because in civil engineering, units are massive, from  KN to MN, and MPa to GPa.

About my last question, what I meant was that in my field, some values follow a different curve according to some variable. For example, the coefficient α_cw, is
Code: [Select]
1+σ_cp/f_cd      for 0 < σ_cp <= 0.25 f_cd
1.25             for 0.25 f_cd < σ_cp <= 0.5 f_cd
2.5(1-σ_cp/f_cd) for 0.5 f_cd < σ_cp <= 1.0 f_cd

Should I implement the default values and the slope change in that last example, by creating an equation, using max(), min() and abs() in order to make the gradual change?

Finally, the constants, to not update according to constants.lua. They seem to be fixed.


Don't worry about the web version. I don't need it. But many of my friends who are willing to buy the same calculator, would certainly need it.

I am currently preparing for an exam at Saturday, so programming my nspire is of paramount importance.[/code]
Title: Re: Release of FormulaPro for the Nspire
Post by: intelx86 on November 11, 2012, 09:35:08 am
Using the latest git-version and a Nspire CX CAS v3.1 calculator, I have a serious problem.

I have a set of 4 principal equations in applied hydraulics.
The only way I get an answer is when I implement all four into one. (look Missing D #4)
If I implement them into two-tree equations and providing I give f (provided by Missing D #4), I get the desired D. (look Missing D #2 & #3)
If I have all four, and I provide the D, I'll get the f, but if I provide the f only, I don't get D. (look Missing D #1)

It seems to be a solver issue. Does FormulaPro uses the built-in CAS solvers and if not, is there a way to select the desired solver?


Input
Q = 0.25 m3/s
ν = 1.1E-06 m2/s
ks = 0.00025 m
L = 1015 m
hf = 9.4 m

Expected output
f = 0.0181
D = 0.3988 m

Code: [Select]
addCat(2, "Applied Hydraulics", "Darcy-Weisbach, Colebrook-White etc.")

addCatVar(2, "hf", "Head loss due to friction", "m")
addCatVar(2, "f", "Darcy friction factor", "unitless")
addCatVar(2, "Re", "Reynolds number", "unitless")
addCatVar(2, c_nu, "Kinematic viscosity", "m2/s")
addCatVar(2, "Ks", "Roughness Factor", "m")
addCatVar(2, "L", "Length of the pipe", "m")
addCatVar(2, "D", "Hydraulic diameter", "m")
addCatVar(2, "V", "Mean velocity", "m/s")
addCatVar(2, "Q", "Volumetric flow rate", "m3/s")

addSubCat(2, 1, "Missing D #1", "")
--Darcy-Weisbach
aF(2, 1, "hf=f*(L/D)*(V^2/(2g))", U("hf","f","L","D","V","g"))

--Colebrook-White
aF(2, 1, "1/sqrt(f)+2log(Ks/D+9.35/(Re*sqrt(f)))=1.14", U("f","Ks","D","Re"))

--Reynolds number
aF(2, 1, "Re=V*D/"..c_nu, U("Re","V","D",c_nu))


aF(2, 1, "Q=V*"..c_pi.."*D^2/4", U("Q","V","D"))


addSubCat(2, 2, "Missing D #2", "")
--Darcy-Weisbach with flow rate
aF(2, 2, "hf=f*(L/D^5)*(8*Q^2/("..c_pi.."^2*g))", U("hf","f","L","D","Q","g"))

--Reynolds number
aF(2, 2, "Re*sqrt(f)=sqrt(2*g*hf/L)*D^(1.5)/"..c_nu, U("Re","f","g","hf","L","D",c_nu))

--Colebrook-White
aF(2, 2, "1/sqrt(f)+2log(Ks/D+9.35/(Re*sqrt(f)))=1.14", U("f","Ks","D","Re"))


addSubCat(2, 3, "Missing D #3", "")
--Darcy-Weisbach with flow rate
aF(2, 3, "D=(8*f*L*Q^2/("..c_pi.."^2*g*hf))^(0.2)", U("hf","f","L","D","Q","g"))

--Colebrook-White with Raynolds number
aF(2, 3, "1/sqrt(f)+2log(Ks/D+9.35/(sqrt(2*g*hf/L)*D^(1.5)/"..c_nu.."))=1.14", U("f","Ks","D","g","hf","L",c_nu))

addSubCat(2, 4, "Missing D #4", "")
--Colebrook-White, with the above
aF(2, 4, "1/sqrt(f)+2log(Ks/((8*f*L*Q^2/("..c_pi.."^2*g*hf))^(0.2))+9.35/(sqrt(2*g*hf/L)*((8*f*L*Q^2/("..c_pi.."^2*g*hf))^(0.2))^(1.5)/"..c_nu.."))=1.14", U("f","Ks","g","hf","L","Q",c_nu))
Title: Re: Release of FormulaPro for the Nspire
Post by: Adriweb on November 11, 2012, 10:32:16 am
Using the latest git-version and a Nspire CX CAS v3.1 calculator, I have a serious problem.

I have a set of 4 principal equations in applied hydraulics.
The only way I get an answer is when I implement all four into one. (look Missing D #4)
If I implement them into two-tree equations and providing I give f (provided by Missing D #4), I get the desired D. (look Missing D #2 & #3)
If I have all four, and I provide the D, I'll get the f, but if I provide the f only, I don't get D. (look Missing D #1)

It seems to be a solver issue. Does FormulaPro uses the built-in CAS solvers and if not, is there a way to select the desired solver?

I haven't had time to look exactly at your code but it "looks" good.

- Can you try to go to the solver in whatever subcategory has a problem.
- Then Ctrl-I to make a new tab, and look at the variable list (Ctrl-L or Var). Do you see what you'd expect ?
   If not something's wrong on your side when entering the data/formula/units/vars. If yes, it's weird...

For the solving, we use nSolve() (so that it works with non-cas models too), as you can see here : https://github.com/adriweb/EEPro-for-Nspire/blob/master/2%20-%20%20FormulaPro/1%20-%20FPSolver.lua#L4 (line 4)
You can try to comment that line 4 and un-comment the one above, just to try ?

I've asked Jim to come see this too, maybe he'll have some ideas...


(By the way :

- your category is #2, meaning you actually removed the original #2 one, right? (Because IIRC, I made something to check if there are conflicts while building the DB, on the latest 1.4a version, but hopefuly you got that version)
- Version 1.4 (latest git version) is only on the source files on Github, but it's not the one on the .tns files there. What do you have written on the script ? 1.3 or 1.4 ?
Title: Re: Release of FormulaPro for the Nspire
Post by: intelx86 on November 11, 2012, 10:53:01 am
I have another category named #1 and have also replaced your database.

The version is definitely 1.4a from git source obtained today.
Code: [Select]
git clone git://github.com/adriweb/EEPro-for-Nspire.git
Changing the solver made no difference.

I opened a new tab, and displayed every variable. If it had a value, it showed the value. If not, the variable's name.
Title: Re: Release of FormulaPro for the Nspire
Post by: Jim Bauwens on November 11, 2012, 10:53:16 am
intelx86, could you try to change the following code in '1 - FPSolver.lua'

Code: [Select]
function math.solve(formula, tosolve)
    --local eq="max(exp" .. string.uchar(9654) .. "list(solve(" .. formula .. ", " .. tosolve ..")," .. tosolve .."))"
    local eq = "nsolve(" .. formula .. ", " .. tosolve .. ")"
    local res = tostring(math.eval(eq)):gsub(utf8(8722), "-")
    --print("-", eq, math.eval(eq), tostring(math.eval(eq)), tostring(math.eval(eq)):gsub(utf8(8722), "-"))
    return tonumber(res)
end


to

Code: [Select]
function math.solve(formula, tosolve)
    local eq="max(exp" .. string.uchar(9654) .. "list(solve(" .. formula .. ", " .. tosolve ..")," .. tosolve .."))"
    --local eq = "nsolve(" .. formula .. ", " .. tosolve .. ")"
    local res = tostring(math.eval(eq)):gsub(utf8(8722), "-")
    --print("-", eq, math.eval(eq), tostring(math.eval(eq)), tostring(math.eval(eq)):gsub(utf8(8722), "-"))
    return tonumber(res)
end

Try if it works with that change.
Normally that should switch the solver to the good CAS one. I should see to script something so that the CAS version get's selected when on a CAS model.
Thank's for your feedback, it's stuff like this that really help us!


Edit: nvm, I see that you tried that already.
Title: Re: Release of FormulaPro for the Nspire
Post by: intelx86 on November 11, 2012, 10:54:11 am
Like I said, nothing changes.
Title: Re: Release of FormulaPro for the Nspire
Post by: Jim Bauwens on November 11, 2012, 11:02:59 am
I think this is an implementation issue. I'll look into it and see what I can do .. if I get the time for that.
Sorry for the trouble :/
Title: Re: Release of FormulaPro for the Nspire
Post by: intelx86 on November 11, 2012, 11:04:57 am
Don't even mention it! Thank you for this fine code and thanks for sharing in the first place.
Bugs are inevitable! :)
Title: Re: Release of FormulaPro for the Nspire
Post by: Adriweb on November 11, 2012, 11:28:08 am
It "may" be not as hard as we can think at first.
In fact, we need to make the line generate a system of equation, and parse the result.
Also make a test to know if it's CAS or not, in order to fully profit of the device's capabilities (and know what [not] to use !).

Jim and/or I will keep you updated here :)
Title: Re: Release of FormulaPro for the Nspire
Post by: intelx86 on November 11, 2012, 12:53:52 pm
When I enter a formula again, but in another category, it is being left out.

Revert
Code: [Select]
    if not checkIfFormulaExists(Formulas, fr.formula) then
        table.insert(Formulas, fr)
    end
    if not checkIfFormulaExists(Categories[cid].sub[sid].formulas, fr.formula) then
        table.insert(Categories[cid].sub[sid].formulas, fr)
    end]
to
Code: [Select]
    table.insert(Formulas, fr)
    table.insert(Categories[cid].sub[sid].formulas, fr)]

or check only inside the subcategory for repetition.
Title: Re: Release of FormulaPro for the Nspire
Post by: Adriweb on November 11, 2012, 01:12:28 pm
Yup, this is the git code and is for the alpha version so far that's why it's not fully tested and especially not "compiled" to the FormulaPro.tns file on the repo (which is the stable 1.3) ;)
I'll see how I can restrict the existence-check to the subcategory :)
Title: Re: Release of FormulaPro for the Nspire
Post by: intelx86 on November 11, 2012, 01:23:39 pm
Do you remember, in my first posts, where I suggested to control the orderand the visibility of the variables?

This could be implemented, by including an optional parameter for function addSubCat().
An array, U("var1", "var2", "var3"...) could be saved as well, indicating the order and the visibility of variables.
If you do not include a variable, ti won't be shown, but only used for calculations.

Optionally, a third button could be included to show "hidden" vars, if applicable.
Title: Re: Release of FormulaPro for the Nspire
Post by: Jim Bauwens on November 15, 2012, 03:21:23 pm
Thanks for those suggestions.
Right now I really don't have time to implement it though, lots of stuff to do for school.
But I have an idea on how to solve the problem. So that is a good start I guess :)
Title: Re: Release of FormulaPro for the Nspire
Post by: mannuri on November 23, 2012, 06:18:54 pm
maybe the problem is there:

 --Reynolds number
 aF(2, 1, "Re=V*D/"..c_nu, U("Re","V","D",c_nu))

trie
aF(2, 1, "Re=V*D/"..c_nu.."", U("Re","V","D",c_nu)) or something close dont use the _ simbol maybe it works

If you edit you .tns using student software you may be able to replace c_nu per ν

edit: ops ν isnt v but the greeg letter, sry my poor english

edit again xD: you have 5 incognits and 4 equations so..

You need use a iterations giving a initial value to f or other variable
Title: Re: Release of FormulaPro for the Nspire
Post by: Adriweb on January 18, 2013, 11:58:11 am
Update !


This post to announce the release of the version 1.4 (beta) of FormulePro !

Here's the changelog of your favorite program ;)
- Ability to open external formulas DBs (this is still being tested. It works but a DB editor would have to be created for the user's convenience ;) )
- Subcat text in manual solver frame gets cropped if too long.
- Tricky mouseUp now working "properly" (ti "bug" when the cursor wasn't shown and the click button was still pressed. It acts as Enter now, as kind of expected)
- mouseUp overall (since it's expected/needed for sButton's improvement)
- sButton more realistic (actually pushed when being clicked on release when mouse exits the area)
- Overall focus color change : it's now light blue (it now looks better, I guess)
- Bugfixes here and there.

Screenshot of the solver with a "pushed" button :
(http://i.imgur.com/HuZKW.png)

Download:
http://tiplanet.org/forum/archives_voir.php?id=6034 (http://tiplanet.org/forum/archives_voir.php?id=6034)


Original topic : http://tiplanet.org/forum/viewtopic.php?f=50&t=11136

(PS : kinda fixes intelx86's errors, with duplicates. see commits)
Title: Re: Release of FormulaPro for the Nspire
Post by: Adriweb on January 20, 2013, 12:01:34 pm
Bonus :

Jim Bauwens took the time to update the online database generator (http://education.bwns.be/FormulaPro/) that lets you create your own formula-filled FormulaPro. You can now enjoy your own equations on the latest FormulaPro update !
Title: Re: Release of FormulaPro for the Nspire
Post by: Nick on January 21, 2013, 05:04:21 am
I've got a question, how can I add this formula:

dh^4=Dh^4-Dh*Dm^4  ?

I've tried:

Code: [Select]
dh^4=Dh^4-Dh*Dm^4
dh=root(Dh^4-Dh*Dm^4,4)
dh=(Dh^4-Dh*Dm^4)^(1/4)
dh=(Dh^4-Dh*Dm^4)^0.25

What else can I do? It always returns 0...
Testvalues:
Dm=150, Dh=180 --> dh=145
Title: Re: Release of FormulaPro for the Nspire
Post by: Adriweb on January 21, 2013, 05:46:54 am
I believe it doesnt work because there are 2 variables with the same lowercase name (on the nspire, the basic variables are lowercase(d) )
Try with different names, to see if it works ?

The syntax of the first line should be good
Title: Re: Release of FormulaPro for the Nspire
Post by: Nick on January 21, 2013, 05:56:29 am
tried this:
dh=(Dh^4-Dh*Dm^4)^(1/4)
But now it doesn't calculate anything.. nvm, I already know it by now xp
Title: Re: Release of FormulaPro for the Nspire
Post by: Levak on January 21, 2013, 06:27:02 am
tried this:
dh=(Dh^4-Dh*Dm^4)^(1/4)
But now it doesn't calculate anything.. nvm, I already know it by now xp
As said Adriweb, dh and Dh are in TI-Basic the same variables (it removes the case). Since FormulaPro uses math.eval() in order to solve part of the problem with CAS, this will leads to a confusing formula you're not looking for.

Try this : dh_=(Dh^4-Dh*Dm^4)^(1/4)
Title: Re: Release of FormulaPro for the Nspire
Post by: Nick on January 21, 2013, 06:38:15 am
Sorry, i wrote the wrong formula, i read what he said :)

I tried this:
dh=(Dhol^4-Dhol*Dm^4)^(1/4)
and it didn't calculate anything
Title: Re: Release of FormulaPro for the Nspire
Post by: Adriweb on January 21, 2013, 06:58:18 am
FP uses the CAS's solve() or nSolve() if not available.... so make sure it works first in the OS ?
Title: Re: Release of FormulaPro for the Nspire
Post by: Nick on January 21, 2013, 09:54:53 am
I should have made a mistake, I'll look into it, since all the other formulas seem to work (afaict), so it'll be my mistake
Title: Re: Release of FormulaPro for the Nspire
Post by: EngBianco on May 24, 2013, 12:18:13 am
English.: How to create a database to work only with the "International System of Units"? This system has some ready to download?
thank you

Portuguese.: Como crio um banco de dados para trabalhar somente com o "Sistema internacional de unidades" ?? Tem algum com esse sistema pronto para baixar??
Obrigado
Title: Re: Release of FormulaPro for the Nspire
Post by: AlexisVieira on May 24, 2013, 01:32:56 pm
English.: How to create a database to work only with the "International System of Units"? This system has some ready to download?
thank you

Portuguese.: Como crio um banco de dados para trabalhar somente com o "Sistema internacional de unidades" ?? Tem algum com esse sistema pronto para baixar??
Obrigado

como assim "banco de dados"? explica o que queres fazer

what you mean by "database"? explain what you want
Title: Re: Release of FormulaPro for the Nspire
Post by: EngBianco on July 03, 2013, 10:53:49 am
AlexisVieira

Digo assim, quero usar todas as unidades de medidas de todas as coisas em unidades do Sistema Internacional de Unidades.
Por exemplo, nos estados unidos utilizam "ft/pés" e no Brasil(América do Sul) utilizamos "km/h ou m/s".
Não sei como é ae em Portugal, mas aqui utilizamos o Sistema Internacional de Unidades.

Entende?

Quero instalar esse aplicativo e deixar todas as medidas utilizando o Sistema Internacional de Unidades.

Tem algum arquivo específico para deixar todas as unidades no sistema internacional de unidades??

Sou leigo no assunto, não aprendi nem mesmo a instalar ainda.

Obrigado

==========

English:


Say so, I use all units of measure of all things in units of the International System of Units.
For example, in the United States use "ft / ft" and Brazil (South America) use "km / h or m / s."
I do not know how to, and in Portugal, but here we use the International System of Units.

Understand?

I want to install this application and leave all measurements using the International System of Units.

Is there any specific file to make all units in the international system of units?

I am a layman in the subject, not even learned to install yet.
Title: Re: Release of FormulaPro for the Nspire
Post by: AlexisVieira on July 03, 2013, 06:33:58 pm
AlexisVieira

Digo assim, quero usar todas as unidades de medidas de todas as coisas em unidades do Sistema Internacional de Unidades.
Por exemplo, nos estados unidos utilizam "ft/pés" e no Brasil(América do Sul) utilizamos "km/h ou m/s".
Não sei como é ae em Portugal, mas aqui utilizamos o Sistema Internacional de Unidades.

Entende?

Quero instalar esse aplicativo e deixar todas as medidas utilizando o Sistema Internacional de Unidades.

Tem algum arquivo específico para deixar todas as unidades no sistema internacional de unidades??

Sou leigo no assunto, não aprendi nem mesmo a instalar ainda.

Obrigado


try this:
Bonus :

Jim Bauwens took the time to update the online database generator (http://education.bwns.be/FormulaPro/) that lets you create your own formula-filled FormulaPro. You can now enjoy your own equations on the latest FormulaPro update !
Title: Re: Release of FormulaPro for the Nspire
Post by: EngBianco on July 16, 2013, 11:48:11 am
I want to install this application and leave all measurements using the International System of Units.
But. I do not know what are the measures of the "International System of Units."
Has any files here. You are ready. With these measures?
thank you

AlexisVieira

Digo assim, quero usar todas as unidades de medidas de todas as coisas em unidades do Sistema Internacional de Unidades.
Por exemplo, nos estados unidos utilizam "ft/pés" e no Brasil(América do Sul) utilizamos "km/h ou m/s".
Não sei como é ae em Portugal, mas aqui utilizamos o Sistema Internacional de Unidades.

Entende?

Quero instalar esse aplicativo e deixar todas as medidas utilizando o Sistema Internacional de Unidades.

Tem algum arquivo específico para deixar todas as unidades no sistema internacional de unidades??

Sou leigo no assunto, não aprendi nem mesmo a instalar ainda.

Obrigado


try this:
Bonus :

Jim Bauwens took the time to update the online database generator (http://education.bwns.be/FormulaPro/) that lets you create your own formula-filled FormulaPro. You can now enjoy your own equations on the latest FormulaPro update !
Title: Re: Release of FormulaPro for the Nspire
Post by: AlexisVieira on July 17, 2013, 08:23:44 am
But. I do not know what are the measures of the "International System of Units."

Why don't you google it?
Title: Re: Release of FormulaPro for the Nspire
Post by: DJ Omnimaga on July 17, 2013, 01:22:21 pm
But. I do not know what are the measures of the "International System of Units."

Why don't you google it?
He better be careful when doing that, to make sure his results are accurate. I know that some Americans (especially in Texas and New York) tend to be very patriotic and will probably claim that their system of units is the best and the international one, rather than the metric system. :P
Title: Re: Release of FormulaPro for the Nspire
Post by: Jim Bauwens on July 18, 2013, 04:39:27 am
Use the link http://education.bwns.be/FormulaPro/eepro.html and then manually remove the units you don't want. I don't have the time to do this for you. Maybe in the future EEPro will support the ability to select your units.
Title: Re: Release of FormulaPro for the Nspire
Post by: Patis on November 24, 2013, 07:17:49 pm
Is there a way to allow for a table output to my missing variable? For example I have an equation that gives 4 different angles, 2 of which are useful; however from looking at this code it restricts the solution to the max value in the table as well as only outputting as a number. Basically I'd just like to be able to put in a few inputs and get my solution out as if I had done solve. Inputs would not change from a single number for each input.

Code: [Select]
function math.solve(formula, tosolve)
    local eq="max(exp" .. string.uchar(9654) .. "list(solve(" .. formula .. ", " .. tosolve ..")," .. tosolve .."))"
    --local eq = "nsolve(" .. formula .. ", " .. tosolve .. ")"
    local res = tostring(math.eval(eq)):gsub(utf8(8722), "-")
    --print("-", eq, math.eval(eq), tostring(math.eval(eq)), tostring(math.eval(eq)):gsub(utf8(8722), "-"))
    return tonumber(res)
end

Thanks for your time. This program has been a lifesaver.
Title: Re: Release of FormulaPro for the Nspire
Post by: dislexicengineer on December 22, 2013, 10:33:33 pm
Any updates on a ChemPro and MEPro?

Thanks
Title: Re: Release of FormulaPro for the Nspire
Post by: Adriweb on December 23, 2013, 04:35:44 am
Not yet, sorry !
MEPro has more levels of hierarchy through the categories etc. and without dirty hacks it wouldn't be possible to make a thing quickly.....
We're redoing the core from scratch, basically, and anyway we'll announce the release so you'll hear about it :)
Title: Re: Release of FormulaPro for the Nspire
Post by: Adriweb on August 07, 2014, 01:54:02 pm
v1.41b - Cosmetic changes
- Border/focus colors now improved/visible on B&W devices.
- Better alignment of some widgets
- Minor changes in other parts of code

Details : https://github.com/adriweb/EEPro-for-Nspire/commit/3d7aa29a4b75f47989155d14062c48381501612f

Download : https://github.com/adriweb/EEPro-for-Nspire/raw/master/FormulaPro.tns
Title: Re: Release of FormulaPro for the Nspire
Post by: trmpereira on August 07, 2014, 04:45:03 pm
That update was applied to the site where we can generate my own formulapro?
Thanks this awesome job you make for tinspire lover
Title: Re: Release of FormulaPro for the Nspire
Post by: Adriweb on August 07, 2014, 06:05:44 pm
Nope, that was the calculator program.

The generator is still up and working.


(Edit : Also, thanks :P)
Title: Re: Release of FormulaPro for the Nspire
Post by: trmpereira on March 16, 2015, 04:47:26 pm
There is an away to re-upload my code to site, @Adriweb  where we can generate my own formulapro or if I wanna edit some formula or add some unit I need to do all over again?
Title: Re: Release of FormulaPro for the Nspire
Post by: Adriweb on March 16, 2015, 08:49:24 pm
For now, it's not supported on the website... However you can edit the lua code yourself in the Nspire Computer Software (open the .tns, Insert -> Script Editor -> Edit script), find the lines with the units etc. and add what you want.
Title: Re: Release of FormulaPro for the Nspire
Post by: trmpereira on March 16, 2015, 09:41:22 pm
Thx @Adriweb i will do taht way...
Title: Re: Release of FormulaPro for the Nspire
Post by: trmpereira on November 18, 2015, 05:13:17 am
What happen to http://education.bwns.be/formulapro offline just for me!?
Thanks!