[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5080: mysql_connect(): Too many connections
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5106: mysql_query(): Too many connections
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5106: mysql_query(): A link to the server could not be established
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5107: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given
A simple (but useful) tool for algebra students. - CAA: Christian Anime Alliance

A simple (but useful) tool for algebra students.

Homework giving you a headache? Math gives you a migraine? Can't quite figure out how to do something in photoshop? Never fear, the other members of CAA share their expertise in this forum.

A simple (but useful) tool for algebra students.

Postby Slater » Sun Dec 11, 2005 11:35 pm

I have finished my CSc 203.01 project and decided to upload it here for y'all. unlike the rest of my Java apps that I've uploaded here, this one makes use of several (more than 10, I'm sure) java packages. So I'm putting this one in a new thread because it's not nearly as n00bish as my other progs.

Oh yeah, what is it? It's a linear and quadratic equation solver. You can use it to check your work in math (don't use it to cheat please) or for scientific projects.
Also, I will write up another version of the QES. This one currently turns irrational numbers (like Square Root of 13) into approximations. While these aproximations aren't perfect, they are accurate enough for most applications (more accurate than your average desk-top calculator, actually).

All you need to run it is Java Runtime Enviroment 1.5/5.0 (JRE 1.5 and 5.0 are the same. Not sure why they went from 1.4 to 5.0...), which can be downloaded for free from http://java.sun.com/ , and how to get around your opperating system's command prompt system (ie, in windows, how to use the cd command. It's not hard; I learned how when I was 5). further doccumentation can be found in the zip. Oh yeah, and you need a program like winzip or winrar to open the .zip file, but... if you don't have that by now, then you fail at internet.

Teh link: http://www.midiverse.bassmanhost.com/homework/QES.zip

Enjoy! (I like feedback!)

Note1: for those of you who know how to run java apps already, main(String [] args) is located in WelcomeQES.class

Note2: Pretty please don't decompile the code, with cherries on top. The code is all mine, and I don't really mind if someone steals it (ok, maybe I do, just a little :P )... but if the source gets out onto the internet, there's a chance that I could get in major trouble with the CS department. None of us want that... right?
Image
User avatar
Slater
 
Posts: 2671
Joined: Sat May 22, 2004 10:00 am
Location: Pacifica, Caliphornia

Postby Dante » Mon Dec 12, 2005 5:36 pm

Why not use maple, mathcad or (If you have ultimate math l33tness) at TI-89 Titanium (others will work too, but they don't have ultimate math l33tness). I guess I was lucky though, my community college had a licence with Maple that gave them the right to give it out to their math student for free. :)

Pascal
User avatar
Dante
 
Posts: 1323
Joined: Thu Mar 04, 2004 8:24 pm
Location: Where-ever it is, it sure is hot!

Postby Slater » Tue Dec 13, 2005 2:58 am

I did it in Java because it was for my Java project.
Image
User avatar
Slater
 
Posts: 2671
Joined: Sat May 22, 2004 10:00 am
Location: Pacifica, Caliphornia

Postby Technomancer » Tue Dec 13, 2005 4:52 pm

For the sake of curiosity, what method do you use for solving linear equations?
The scientific method," Thomas Henry Huxley once wrote, "is nothing but the normal working of the human mind." That is to say, when the mind is working; that is to say further, when it is engaged in corrrecting its mistakes. Taking this point of view, we may conclude that science is not physics, biology, or chemistry—is not even a "subject"—but a moral imperative drawn from a larger narrative whose purpose is to give perspective, balance, and humility to learning.

Neil Postman
(The End of Education)

Anti-intellectualism has been a constant thread winding its way through our political and cultural life, nurtured by the false notion that democracy means that my ignorance is just as good as your knowledge

Isaac Aasimov
User avatar
Technomancer
 
Posts: 2379
Joined: Fri Jun 13, 2003 11:47 am
Location: Tralfamadore

Postby Slater » Tue Dec 13, 2005 10:12 pm

basically I use the following equation: x = -c/b
where bx + c = 0

There are many methods involved, including those that handle exceptions (blank fields, 0 b coefficient [though Java can do x/0 equations... it's just not something that's very good to have in such a simple solver], non-Double inputs, etc). Most of the methods involve grabbing the values from the JTextFields and converting them from String data type to Double data type (using Wrapper class). Once that's done, simple algebra and the method to write the answer to the answer JTextField and bam, all done.
Image
User avatar
Slater
 
Posts: 2671
Joined: Sat May 22, 2004 10:00 am
Location: Pacifica, Caliphornia

Postby Technomancer » Wed Dec 14, 2005 11:56 am

I see. When most people around me talk about solving linear equations, it's usually assumed that they mean linear systems of equations (i.e. matrix computations). Since there are several ways of doing this, I was curious as to which one you might have used. Had I installed your software, I would have known better, although I didn't bother since I already use much more powerful mathematics software packages.
The scientific method," Thomas Henry Huxley once wrote, "is nothing but the normal working of the human mind." That is to say, when the mind is working; that is to say further, when it is engaged in corrrecting its mistakes. Taking this point of view, we may conclude that science is not physics, biology, or chemistry—is not even a "subject"—but a moral imperative drawn from a larger narrative whose purpose is to give perspective, balance, and humility to learning.

Neil Postman
(The End of Education)

Anti-intellectualism has been a constant thread winding its way through our political and cultural life, nurtured by the false notion that democracy means that my ignorance is just as good as your knowledge

Isaac Aasimov
User avatar
Technomancer
 
Posts: 2379
Joined: Fri Jun 13, 2003 11:47 am
Location: Tralfamadore


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 37 guests