|
| 06 Feb 2013 08:09 PM |
//Single Digit Equation var mathProblem = function(problem) { x = problem.substring(0, 1); y = Math.pow(problem.substring(8, 9), 1 / 3); z = problem.substring(0, 1) + "^2"; xx = Math.pow(y, 2); yy = y + problem.substring(0, 1); document.write("(" + x + "-" + y + ")" + "(" + z + "+" + yy + "+" + xx + ")"); }; mathProblem("a ^ 3 - 8");
//Double Digit Equation var mathProblem = function(problem) { x = problem.substring(0, 1); y = Math.round(Math.pow(problem.substring(8, 10), 1 / 3)); z = problem.substring(0, 1) + "^2"; xx = Math.pow(y, 2); yy = y + problem.substring(0, 1); document.write("(" + x + "-" + y + ")" + "(" + z + "+" + yy + "+" + xx + ")"); }; mathProblem("a ^ 3 - 64");
//Triple Digit Equation var mathProblem = function(problem) { x = problem.substring(0, 1); y = Math.round(Math.pow(problem.substring(8, 11), 1 / 3)); z = problem.substring(0, 1) + "^2"; xx = Math.pow(y, 2); yy = y + problem.substring(0, 1); document.write("(" + x + "-" + y + ")" + "(" + z + "+" + yy + "+" + xx + ")"); }; mathProblem("a ^ 3 - 216");
This factors out certain math problems.
And bid on whatever limited items I have left. |
|
|
| Report Abuse |
|
|
| |
|
L2000
|
  |
| Joined: 03 Apr 2008 |
| Total Posts: 77448 |
|
|
| 06 Feb 2013 08:11 PM |
What language is that?
I made something like that a while ago for my comp sci course.. A C calcy; enter any equation, it answers it for you, then gives you a result. Then it had special stuff like binary and hex conversions and other useful stuff :D
Removed it though 'cause I got annoyed with how many functions I made for it. Probably remaking at some point. |
|
|
| Report Abuse |
|
|
| |
|
Fiercely
|
  |
| Joined: 04 Jun 2012 |
| Total Posts: 5308 |
|
| |
|
|
| 06 Feb 2013 08:11 PM |
| It's in JavaScript. And cool :D |
|
|
| Report Abuse |
|
|
L2000
|
  |
| Joined: 03 Apr 2008 |
| Total Posts: 77448 |
|
|
| 06 Feb 2013 08:11 PM |
@iMets You should have seen my calculator then lololol 1,000+ lines :D But that's 'cause I'm insane when it comes to comp sci |
|
|
| Report Abuse |
|
|
| |
|
L2000
|
  |
| Joined: 03 Apr 2008 |
| Total Posts: 77448 |
|
|
| 06 Feb 2013 08:12 PM |
@Holiday Is that Javascript? Thought it looked similar to it, wasn't too sure though.
Nice script.. :D Almost makes me want to make mine again :D |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2013 08:12 PM |
| I mean I love math and all, and I'm pretty good at it, but reading all those symbols at once made my head hurt. |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2013 08:12 PM |
| I mean I love math and all, and I'm pretty good at it, but reading all those symbols at once made my head hurt. |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2013 08:12 PM |
| I mean I love math and all, and I'm pretty good at it, but reading all those symbols at once made my head hurt. |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2013 08:12 PM |
| pre algebra and i dont understand anything but a few parts |
|
|
| Report Abuse |
|
|
Luminace
|
  |
| Joined: 24 Nov 2012 |
| Total Posts: 430 |
|
|
| 06 Feb 2013 08:12 PM |
| that was my homework for yesterday, why could you help then??? |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2013 08:13 PM |
| Yes. It's JavaScript. And if you don't understand it it's not because you aren't good at math but because you don't know JavaScript. |
|
|
| Report Abuse |
|
|
L2000
|
  |
| Joined: 03 Apr 2008 |
| Total Posts: 77448 |
|
|
| 06 Feb 2013 08:13 PM |
@Master Math != Computer Programming / Science 'Cause computer programming is all about that.. They share stuff like problem solving, and if you're good at math you're almost always (But not always) good at stuff like that, but still. Some big differences between them.
Also I'm living here now |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2013 08:15 PM |
| I'm going to make one that does Punnet Squares soon :D |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2013 08:17 PM |
I dont like math but im good at it lol
-Chi cento Ne fa, una ne aspetti- |
|
|
| Report Abuse |
|
|
Arktika
|
  |
| Joined: 27 Nov 2012 |
| Total Posts: 2586 |
|
| |
|
L2000
|
  |
| Joined: 03 Apr 2008 |
| Total Posts: 77448 |
|
|
| 06 Feb 2013 08:52 PM |
@Holiday What's Punnet Squares? :o |
|
|
| Report Abuse |
|
|
L2000
|
  |
| Joined: 03 Apr 2008 |
| Total Posts: 77448 |
|
| |
|