Just kidding - I do need a reference though. My memory though vast is not infallible. Also most math texts will generally have fair organisation of math branches. Maybe I just like my reference texts too much...
Back on the math ( slightly different focus)
Moderator: General Moderators
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
-
Charles256
- DevNet Resident
- Posts: 1375
- Joined: Fri Sep 16, 2005 9:06 pm
I have a math book. I actually own three right now, a calculus book, a linear algebra book, and an advanceds math techniques book (which I don't think is possible to explain to a computer. ) . BTW, our project is also going to branch into 3D graphs after we get the math library done.
It'll just take some time is all.
-
Charles256
- DevNet Resident
- Posts: 1375
- Joined: Fri Sep 16, 2005 9:06 pm
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
Making a few links... I generally get involved in projects if they are interesting and possibly applicable to my game development. This lib seems to, there's also another project LIFE (see the General Discussion "Let's build a rainforest" topic). There may be a little overlap in that LIFE may require certain math functions at a future point. I assume any LIFE project will be looking at distance and possibly other more complex operations as it proceeds.
Might be interesting to track that project, and see if there's any overlapping both projects could unite on...
It's a possibility.
Might be interesting to track that project, and see if there's any overlapping both projects could unite on...
It's a possibility.
-
Charles256
- DevNet Resident
- Posts: 1375
- Joined: Fri Sep 16, 2005 9:06 pm
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
-
Charles256
- DevNet Resident
- Posts: 1375
- Joined: Fri Sep 16, 2005 9:06 pm
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
that doesn't sound hard to me, until you get into the messing with y/f(x). Just use a string and replace the second... err.. something like this:
$p = new Polynomial("y=2*x",'y','x');
If you always used y and x, you wouldn't need the second two params. You could just split it at the = and do the math for x/y if you wanted to solve for something. If you wanted to perform functions on them it would be a bit harder, but doable. It all depends on what you want to do with the polynomials.
$p = new Polynomial("y=2*x",'y','x');
If you always used y and x, you wouldn't need the second two params. You could just split it at the = and do the math for x/y if you wanted to solve for something. If you wanted to perform functions on them it would be a bit harder, but doable. It all depends on what you want to do with the polynomials.
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
Probably this.
Code: Select all
class Polynomial {
function getCoefficient($degree) {}
function &multiply(&$polynomial) {}
function &add(&$polynomial) {}
function &subtract(&$polynomial) {}
function evaluate($x) {}
function getRoots() {} //we'll need Complex for this one...
function &differentiate() {} //polynomial return
function integrate($a, $b) {} //no indefinites...
function getDegree() {}
function getVertices($lowerbound = null, $upperbound = null) {}
function graph() {} //heh heh...
}