I need some php (and/or javascript) tools that can do some math for me.
Such as return the area and volume of a cube, cylinder, square etc.
Return square roots and all that shit.
I know the php functions for basic math such as sqrt() for square roots.
But I fucking suck at formulas and I need some sort of simple php system or classes that have the formulas set up.
Thanks.
For instance:
function circle ($r, $form) {
if ($form=="area") {
$area=M_PI*(r^2)
return $area;
}
if ($form=="circumference") {
$circumference=M_PI*(2 * r)
return $circumference;
}
}
Just do something like that with each of the formulas you need.
What do you need this for anyways? Those kinds of formulas are very easy to solve.
It's for a math project, I'm literally terrible at formulas, I figured someone has made some cool functions for it.
a
What, you're just asking for formulas? Seriously? Just make them, it seems like you're hoping to get someone to do the work for you, and it's ridiculously easy work.
[QUOTE=Pepin;20679723]What, you're just asking for formulas? Seriously? Just make them, it seems like you're hoping to get someone to do the work for you, and it's ridiculously easy work.[/QUOTE]
No, I can look up formulas, I was just wondering if there are any lists of functions or a class that has like a shitload of advanced math formulas worked out that I could get my hands on...
you sound like you just wanna get answers without doing the work, so check this! [url]http://www.wolframalpha.com/[/url]
[QUOTE=nivek;20687379]advanced math formulas[/QUOTE]
[QUOTE=nivek;20668954]Such as return the area ... of a square[/QUOTE]
Yeah, you should probably start learning these things before you try to make something with them.
[QUOTE=Kalinium;20776760]Yeah, you should probably start learning these things before you try to make something with them.[/QUOTE]
But it's [I]so[/I] hard to remember those formulas. Like the area of a square, you have to remember s^2.
Sorry, you need to Log In to post a reply to this thread.