Re: [Serious - programming] I need ideas for program features
Ok, I need some more inspiration guys...
I've finally added support for negative numeric literals (the last major omission that I had thus far).
I'm planning to add "stored subroutine" support (loads user-defined math equations from a file for later use) which promises to be awesome :D
But I still need more ideas, the cooler the better. Impress me.......
Re: [Serious - programming] I need ideas for program features
finding roots for "y = 0.6x2 + -4x + -3"
using:
http://mathworld.wolfram.com/images/.../equation5.gif (pic courtesy of Wolfram)
0.6, -4 and -3 are stored into variables "a", "b" and "c" respectively through the config file...
Code:
./rpnsolve "=a b c dump"
dump:
[0] == 0.6
[1] == -4
[2] == -3
...
./rpnsolve "=b neg b b * 4 a c * * - sqrt - 2 a * /"
=-0.680532
./rpnsolve "=b neg b b * 4 a c * * - sqrt + 2 a * /"
=7.3472
The left-hand root is given in blue and the right hand one in green :D
Hurrah.
Re: [Serious - programming] I need ideas for program features
For once, I have not been mocked at for giving a suggestion.
Hurrah.
EDIT: I did not see woss's post above before I posted this - Coincidence for Hurrah :sick:
Re: [Serious - programming] I need ideas for program features
Moved. Please don't post technical questions in the General Discussion / Chit Chat forum.