• 0

[PHP] Calculus Functions


Question

7 answers to this question

Recommended Posts

  • 0

Hello all,

I've been searching for a while and I can't seem to be getting anywhere. Does anyone have any functions to do derivatives and other calculus functions in php? Or, do you know where I can find one?

I hope somebody out here has an idea.

Hey there,

Check this out.

Found it from php.net. :)

  • 0

I highly doubt you're going to find anything in the interpreted language world that will be able to do symbolic math to any level of serious detail. That includes things like bash, php, javascript, etc.

Now, what you might be able to do is write a web frontend to something like mathomatic (http://www.mathomatic.com), or another open source tool capable of doing symbolic math. Might be a good idea to search freshmeat or sourceforge for something like that.

  • 0

Well, I'm making progress! :D

I've found an integral approximation method that I can code easily in php. It's called Simpson's Rule. An example of a javascript function of Simpson's Rule can be found here. I hope this helps anyone else out who was looking to do a similar thing.

I'm still looking for a way to calculate the derivative, and also a way to analytically take an integral.

  • 0

Well, I'm making progress! :D

I've found an integral approximation method that I can code easily in php. It's called Simpson's Rule. An example of a javascript function of Simpson's Rule can be found here. I hope this helps anyone else out who was looking to do a similar thing.

I'm still looking for a way to calculate the derivative, and also a way to analytically take an integral.

It's gonna be hard, but just so you know: http://integrals.wolfram.com/index.jsp

Someone did it :p And rather well too.

Good luck!

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.