Basics Archives Community Services Programming
Hardware Help About Search Your Account
Home :: Programming :: Program Ideas :: Math Program Ideas
Math Program Ideas
 Post your ideas for new math programs here, or build on ideas posted by other visitors.
Reply to this item

linear,quadratic,cubic,quintic
miscellaneousprogrammer

does anybody know of a program which solves linear, quadratic, cubic, and biquadratic equations? Really what I am looking for is the solution to the cubic/biquadratic equations, though it would be fine if the other 2 were included. Thanks

23 December 2003, 17:27 GMT

Re: linear,quadratic,cubic,quintic
jrock7286

If you could be just a little more specific (perhaps give an example problem?) I could probably make this for you. I'm not sure exactly what a biquadratic is, but if you explain it to me I could probably do it...

24 December 2003, 18:37 GMT

Re: Re: linear,quadratic,cubic,quintic
jrock7286

Also, by "solving" the equations, do you mean find the values of x for which y is equal to zero? I'm not quite sure what you're asking...

26 December 2003, 01:37 GMT

Re: Re: linear,quadratic,cubic,quintic
jrock7286

ok...searched google...found out biquadratic is the same as "quartic"...a fourth degree polynomial. OK...but I still need to know what you mean by how to "Solve" the equation...

26 December 2003, 01:39 GMT

Re: Re: linear,quadratic,cubic,quartic
miscellaneousprogrammer

What I need:
Solve for x:
Linear: Ax+B=0 (This is not necassary, but it seems to "complete" the program)
Quadratic: Ax^2+Bx+C=0 (Still not necassary)
Cubic: Ax^3+Bx^2+Cx+D=0 (I can program this, but it would take awhile)
Quartic: Ax^4+Bx^3+Cx^2+Dx+E=0 (I do not completely understand the method. This is what I especially need.)
I can supply the formulas/algorithms for any of the above, if necassary.

Thanks.

26 December 2003, 19:53 GMT

Re: Re: Re: linear,quadratic,cubic,quartic
jrock7286

I am going to email you the solution to at least the x^3 one and maybe the x^4. I cannot post them, because they would take too much space...also, I may not be able to give you the x^4 one because maple won't give me a solution to that (geez, even with "the power of a thousand mathematicians"?) I could try a google search though....

29 December 2003, 21:02 GMT

Re: Re: Re: Re: linear,quadratic,cubic,quartic
jrock7286

OK...I found a PDF on the web that has solutions to ALL of those, and I also found a java APP that solves the quartic one...here are the websites (take out spaces):
Java Application:
home.att.net/ ~srschmitt /quartic.html
PDF file:
observe.phy.sfasu.edu/ courses/ egr111/ math/ ms6.pdf
Hope these will help you...I'm going to make a program for the 83+ that solves these...if it is not built in already...I don't remember...

29 December 2003, 21:16 GMT

Re: Re: Re: Re: Re: linear,quadratic,cubic,quartic
jrock7286

I finished the 83+ program, and it works great. I'm going to upload it soon and then will work on the COMPLEX roots...

30 December 2003, 06:09 GMT

Re: Re: Re: linear,quadratic,cubic,quartic
miscellaneousprogrammer

You don't have to email me the solutions. I know them, it's just that I can't (easily) program them. Just put them in the archives and give me the name.

Thanks.

1 January 2004, 12:59 GMT

Re: Re: Re: Re: linear,quadratic,cubic,quartic
jrock7286

You know what? I actually lent my calc that had that program on it to my brother's girlfriend...I'll give you the source to the cubic one as a reply to this post...I just need to remake it.

1 January 2004, 21:17 GMT

Re: Re: Re: Re: linear,quadratic,cubic,quartic
jrock7286

This program will give only the real roots of the cubic equation...I'm still working on the complex part
(-> is the sto key)

BEGINNING OF PROGRAM
Disp "Ax^3+Bx^2+Cx+D=0"
Prompt A,B,C,D
(2(B/A)^3-9BC/A^2+27D/A)/27 -> W
(3C/A-(B/A)^2)/3 -> V
W^2/4+V^3/27 -> Y
If Y>0
Then
-.5W+sqrt(Y) -> E
-.5W-sqrt(Y) -> F
sqrt(abs(E)) -> S
If E<0
-S -> S
sqrt(abs(F)) -> T
If F<0
Then
-T -> T
End
Disp "x=",S+T-B/(3A)
End
If Y<0
Then
-W/2*sqrt(27/abs(v^3)) -> Z
Pi/2 -> theta
If Z != 0 (doesn't equal)
arctan(sqrt(1-Z^2)/Z) -> theta
If theta < 0
theta+Pi -> theta
Disp "x=", 2 sqrt(abs(V)/3)*cos(theta/3) - B/(3A), 2 sqrt(abs(V)/3)*cos((2Pi+theta)/3) - B/(3A), 2 sqrt(abs(V)/3)*cos((4Pi+theta)/3) - B/(3A)
End
If Y=0
Then
sqrt(abs(W)/2) -> S
If W>0
-S -> S
Disp "x=",2S-B/(3A),-S-B/(3A)
End
END OF PROGRAM

This should be right, if it isn't, either let me know in a reply to this, or email me at jrock7286@aol.com. Hope this was of help to you!

1 January 2004, 21:40 GMT

Simplify people!
shkaboinka
(Web Page)

Here, let me simplify that (not that [^-1], [^2], and [^3] can all be replaced by single tokens):

SET THE MODE TO RADIANS OR DEGREES (I dont know which)
Disp "Ax^3+Bx^2+Cx+D=0
Prompt A,B,C,D
27[^-1](2(B/A)[^3]-9BC/A[^2]+27D/A -> W
3[^-1](3C/A-(B/A)^2 -> V
W[^2]/4+V[^3]/27 -> Y
If Y>0
Then
-.5W+sqrt(Y -> E
-.5W-sqrt(Y -> F
(1-2(E<0))sqrt(abs(E -> S
(1-2(E<0))sqrt(abs(F -> T
Disp "x=",S+T-B/(3A
End
If Y<0
Then
-.5(W sqrt(27/abs(v[^3] -> Z
Pi/2 -> theta
If Z
arctan(sqrt(1-Z[^2])/Z -> theta
theta+Pi(theta<0 -> theta
Disp "x=", 2 sqrt(abs(V)/3)*cos(theta/3) - B/(3A), 2 sqrt(abs(V)/3)*cos((2Pi+theta)/3) - B/(3A), 2 sqrt(abs(V)/3)*cos((4Pi+theta)/3) - B/(3A)
End
If not(Y
Then
(1-2(W<0))sqrt(abs(W)/2 -> S
Disp "x=",2S-B/(3A),-S-B/(3A
End

3 February 2004, 17:56 GMT

Re: Re: Re: Re: Re: linear,quadratic,cubic,quartic
hill fung yau

I would really like you to know the solution for the 3rd degree polynomial, with without complex zero and with complex zero

11 October 2004, 22:13 GMT

Re: Re: Re: Re: Re: Re: linear,quadratic,cubic,quartic
chandragupta

I have another way to do it... it is about as long, but it gives all three roots. even the complex ones (in the a+bi form, witch is a little hard to interpret if they are decimal parts)
the way i did it was to get the general cubic equation, then, (because this ony gives one root) i do synthetic division and get the supressed (quadratic) equation and use a quadratic solver (another program i made, and simple to make). this may seem long, but it does work, including the imaginary parts.
If you want the general cubig formula, here it is:
x={q + [q2 + (r-p2)3]1/2}1/3 + {q - [q2 + (r-p2)3]1/2}1/3 + p
where
p = -b/(3a), q = p3 + (bc-3ad)/(6a2), r = c/(3a)

Happy Programming.

6 December 2005, 02:56 GMT

Re: linear,quadratic,cubic,quintic
Tonythetiger

TI has an app. that does all of this for you... its called polysmlt, it will solve for up to X to the 30th power

3 January 2004, 20:18 GMT

polysmlt
Tonythetiger

12x^5+x^4-16x^3-5x^2+x-3=0

it will solve for all x's that make that above statement true (ie finding zeros of an equation)

3 January 2004, 20:24 GMT

Re: linear,quadratic,cubic,quintic
Robotbeat

I created a function called "Quartic Solver" (and I uploaded it, waiting for it to be added...) which solves the quartic exactly. I used Mathematica, which is IMO better than Maple. Anyways, it's for the TI-89 because that's what I have. It's of course a BASIC program. It solves for all four roots, real or complex. The answers are arranged in a matrix. The function is pretty big, weighing in at 5KB or so, but there's nothing you can do about it if you want it to be precise. I didn't bother uploading my other cubic solver because I already saw a BASIC TI-89 cubic solver. You can't have the first term (i.e. 0*x^4) be zero because you get an "undef" so you'll have to use a different program for solving the cubic. If I get around to it, maybe I'll upload the cubic solver as well.

A word of warning, to solve a quartic equation takes like a minute. Cubics are much better, usually around 10 seconds.

7 April 2004, 19:56 GMT

Re: linear,quadratic,cubic,quintic
Wesley Transue

If you have a TI-83, or any version of it, press [math], then [0] and it will come up with the equation solver. Just type in the equation (like ax+b, ax^2+bx+c, ax^3+bx^2+cx+d=0, etc.), press enter, and tell it what the variables equal. To solve for 'x', clear the x variable (after all other variables are given values) and press [alpha], then [enter]. Of course this takes out all the fun of programming, but I think we can live without it. It can do many other equations, you just have to type them in.

24 June 2004, 14:33 GMT

Re: Re: linear,quadratic,cubic,quintic
shakepeare

Great idea to use the built in solver, but the drag is that you have to re-type the formula every time. What about a program that has say 10 popular formulas on a menu, then, when asks stores the proper formula in the variable that solver uses for it's formula, then starts solver? This might save a lot of time, and a lot of programming.

14 June 2006, 16:55 GMT

Re: linear,quadratic,cubic,quintic
managodess

ive made a program myself thta will do quadratics, and one for linears, i could combine them and give you the code, but i dont know about the other one. email me if you want meaghansabanana@hotmail.com

1 July 2004, 05:00 GMT

Re: Re: linear,quadratic,cubic,quintic
3d

Does anyone know how to create a cool shape in 3d graphing, like an equation, i need a shape for one of games.

14 October 2004, 19:21 GMT

Re: Re: Re: linear,quadratic,cubic,quintic
3d

i'm in geometry, and we are doing proofs. they are with all respect, a pain. I was thinking that maybe there is a way to make an asm program (or even basic) that solves the proofs for you. like you enter the picture in someting like geomaster, and then you tell it what to prove and it does the rest, like give you the statements and the reasons.
any help would be great

15 October 2004, 00:39 GMT

Re: Re: Re: Re: linear,quadratic,cubic,quintic
george linkington
(Web Page)

proofs are painful man I don't like them

12 May 2005, 12:42 GMT

proof solver
Radical-Pi

Such a program would be possible; I've seen a working Rubik's Cube solver in the archives.
Proof solving would be something like that I think, by prompting parallels, perpendiculars, triangles, something to prove of course...

Sounds fun. Anyone want to try it?

23 November 2005, 22:46 GMT

Re: proof solver
Radical-Pi

Is anyone still here?
...
Was anyone ever here?
...
Why am I here?
...
What is the meaning of life?
...42

27 December 2005, 23:02 GMT

Re: proof solver
yellowPig

CabriGeometry or the Geometer's sketchpad, on a Voyage. They're really nice flash apps.

7 April 2006, 22:06 GMT

Re: proof solver
Inquit

Yeah. Cool. *But.* Euclidean proofs involve mathematics (logic), and rely on image-interpreting. Add to this that your calculator was designed to use coordinates (how exactly does one draw a line in basic, for example), rather than "some randome place on somewhere in the universe". Combine it with the fact that the proofs involve applying logic to a random situation you don't even know (proof that in any given instance of ... statement A is true/ false). Then think of the fact that lot's of proof is based on excluding other situations, or implicated & equivalent stituations...

- There is a reason why Mathematicians can't yet be replaced by computers. ;)
- There is also a reason why most programs involve doing the tedious work for you, so you can focuss on the real *brainy* part of it all.

Methinks that solving a rubics cube (which is not random, which is entirely predefined, and most of all: which is based on itterations) is quite a different thing from proving or disproving any given (geometrical) thesis.

16 August 2007, 00:58 GMT

Pessimistic, much?
nemo123

Don't be such a downer.
here's how you would solve a proof using ASM (perhaps it could be implemented with BASIC/ASM libraries, though i doubt it.):

create an interface similar to CabriJr.s or GeoMastr. Allow the user to draw lines, perpindicular bisectors, congruency indicators, etc.

When the user is finished, find out everything you can about the photo. Find as many unknown angles and side lengths as numerically possible. This could be done using Constant variables. for example, if you have a right angle cut in two parts by a ray and you know one of the angle's made by the ray, you can find the other part of the right angle. indicating you used the knowledge of complementary angles could be as simple as incrementing a count, and outputting that string to the user.

For each step you take, output what you did. of course, you would need a vast library of theorems to pull from, and you would need large amounts of memory to figure what situation fits the theorem in question.

"When someone tells you it's impossible, take it as "According to my limited knowledge and small scope of the universe, i dictate that as very unlikely"".

31 March 2010, 23:01 GMT

Re: Re: linear,quadratic,cubic,quintic
Daniel Amireh

can you plz tell me how to use the [math] [0]
when i do so and enter the equation it tells me [bound=
waht do i have to put here??

12 December 2004, 19:22 GMT

Re: Re: Re: linear,quadratic,cubic,quintic
Kyle Temkin
(Web Page)

Usually, the default (-1E99, 1E99) where is the the EE button will work fine. Then, to solve, all you need to do is press [alpha] [enter] (entitled "solve").

21 December 2004, 00:02 GMT

Re: Re: Re: Re: linear,quadratic,cubic,quintic
joaquin evans

If anyone can send me some TEXT programs..I don't have a computer-calc cable..so I have to input it by hand..if anyone has some good math programs please message me..im looking for Distance, Slope, Midpoint, Factor...stuff like that..used in College Algebra.
mu email is jackpiser@hotmail.com

18 November 2005, 07:21 GMT

Re: Re: Re: Re: Re: linear,quadratic,cubic,quintic
joaquin evans

so is anybody still cheaking thi swed site?

29 November 2005, 06:56 GMT

Re: Re: Re: Re: Re: Re: linear,quadratic,cubic,quintic
chandragupta

that is a good question.

8 December 2005, 02:30 GMT

Re: Re: Re: Re: Re: Re: Re: linear,quadratic,cubic,quintic
yellowPig

I wish....

30 April 2006, 04:36 GMT

Re: Re: Re: Re: Re: linear,quadratic,cubic,quintic
KINGZING

if you want i have basic programs for the sum of an arithmatic series, sum of a geometric series, and sum of an infinite geometric series?

8 December 2005, 22:45 GMT

Re: Re: Re: Re: Re: linear,quadratic,cubic,quintic
Miguel Munoz

Hello I have basic programs that find the slope, distance, midpoint, and the y-intercept of the line those two points make.

1 April 2006, 04:48 GMT

Re: Re: Re: Re: Re: Re: linear,quadratic,cubic,quintic
yellowPig

what calc?

7 April 2006, 22:07 GMT

Re: Re: Re: Re: Re: Re: Re:Re: Re: Re: Re: Re: Re:Re: Re: Re: Re: Re: Re:Re: Re: Re: Re: Re: Re:R linear,quadratic,cubic,quintic
programer1269

I Am a Basic Programmer for the ti83plus. I Have created a Distance formula for a graph and a game that I call KILLZONE. The game is made of:
Disp:,Input:,Output:,Menu(,and If:/Then:.
I am a 15 yearold in high school and get Board. My friends and I like the game.

How old are all of you?

11 April 2006, 17:22 GMT

Re:last message
yellowPig

why?

30 April 2006, 04:35 GMT

linear,quadratic,cubic,quintic
axonn

13

8 September 2006, 20:50 GMT

Root Mean Square error
Sam Gockel

Hi, can someone make a program to calculate the root mean square errors from a set of residuals?!?!? help

Root mean square error: the square root of ? (y-?)/n-2
where n = number of coordinates

HELP ME

13 October 2006, 21:19 GMT

Re: linear,quadratic,cubic,quintic
James Koch
(Web Page)

Im thirteen also. You should look at my Ultimate Math Functions program. Its interesting...

30 October 2006, 23:35 GMT

Re: Re: linear,quadratic,cubic,quintic
pyromaniackackack

This has nothing to do with whatever u guys were talkin about previously but...

Can anybody help me write a program that does synthetic programming??

If I weren't this stupid, maybe I could do it on my own...

ANYWAYS, if you wanna help me, it'd be nice if you could reply or send an email to connieweasel2003@gmail.com.

Thanks

1 December 2006, 22:15 GMT

Re: Re: Re: Re: Re: linear,quadratic,cubic,quintic
SagazLegend

TEXT programs? Like just the programs written out? 0_o

7 December 2006, 05:47 GMT

Re: Re: Re: Re: Re: linear,quadratic,cubic,quintic
Sean Allred

hehehe im using that book......interesting....

anyway, there is a program you can use to decode a [*.8xi] or any other file into regular...stuff....

It is called TI GraphLink, and can be found on the TI website.
http://education.ti.com

24 January 2008, 02:01 GMT

Re: Re: Re: Re: Re: Re: linear,quadratic,cubic,quintic
Bhtre124
(Web Page)

there also is a site called Ti.zewaren.net that converts them into text files

9 February 2008, 01:35 GMT

1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28

You can change the number of comments per page in Account Preferences.

Copyright © 1996-2012, the ticalc.org project. All rights reserved. | Contact Us | Disclaimer