Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Math library for Free Basic
#21
Fixed, patch is on CVS (http://cvs.sourceforge.net/viewcvs.py/fb...ortby=date), thanks.

I may never get PRINT USING to work fully, that is one of the most hacked statements ever, loads of odds that only appear when compiling old sources.
Reply
#22
Quote:Fixed, patch is on CVS

Thanks!

BTW, the following code compiles in QB but not in FB:

Code:
DIM I AS INTEGER, X AS DOUBLE

I = 5
X = 1.23

PRINT I; USING "#####.##"; X

In FB you must write:

Code:
PRINT I;
PRINT USING "#####.##"; X

Not a real problem, but a slight loss in compatibility Smile

Jean Debord
ean Debord
----------------
Math library for FreeBasic:
http://www.unilim.fr/pages_perso/jean.de...fbmath.zip
Reply
#23
What if you put in a colon, like so?
Quote:PRINT I; : PRINT USING "#####.##"; X
Reply
#24
Quote:What if you put in a colon, like so?

PRINT I; : PRINT USING "#####.##"; X

This works, but QB allows a single PRINT
ean Debord
----------------
Math library for FreeBasic:
http://www.unilim.fr/pages_perso/jean.de...fbmath.zip
Reply
#25
The math library has been updated:

* Added 3 more algorithms for nonlinear optimization (Marquardt, BFGS, Simplex)

* Split source code into more modules for smaller executables

* Added a batch file to recompile the library

* Updated the PDF documentation

The nonlinear equations solvers, which I have promised some time ago, will be added soon. I wanted to implement the optimization algorithms first because most equation solvers are derived from them.
ean Debord
----------------
Math library for FreeBasic:
http://www.unilim.fr/pages_perso/jean.de...fbmath.zip
Reply
#26
is this a physic library ? cause i can really use one 8)
Reply
#27
Quote:is this a physic library ? cause i can really use one 8)

I already use these algorithms in chemical applications, so I think they can be used in physics too 8)

What is your problem exactly ?
ean Debord
----------------
Math library for FreeBasic:
http://www.unilim.fr/pages_perso/jean.de...fbmath.zip
Reply
#28
The library has been updated :

* Added 3 algorithms for nonlinear equations in one unknown (Bisection, Secant, Newton-Raphson)

* Added 2 algorithms for systems of nonlinear equations in several unknowns (Newton-Raphson, Broyden)

Best regards
ean Debord
----------------
Math library for FreeBasic:
http://www.unilim.fr/pages_perso/jean.de...fbmath.zip
Reply
#29
* BastetFurry smells the possibility for a free (as in mind and beer) competitor for programms like MathLab or Derive ^.^
color=red]Look at you, Hacker. A pathetic creature of meat and bone, panting and sweating as you run through my corridors. How can you challenge a perfect, immortal machine?" - Shodan, AI at Citadel Station orbiting Earth[/color]
Reply
#30
what I mean is Physic for game, something like calculation for velocity, accel, momentum, rigid body dynamics, stuff like that....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)