Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: nemo on November 22, 2010, 05:05:24 pm

Title: Triangle Solver
Post by: nemo on November 22, 2010, 05:05:24 pm
Triangle solver! (this topic is so if i RAM clear my calculator, it's no big deal cause it's now online)

this is a graphical triangle solver. if you give it 3 pieces of information, it will give you the other 3. it has no error checking, so if you get err: domain, the triangle probably does not exist. do not give the triangle solver 4+ pieces of information, it is not smart enough to handle this. it assumes you put in 3. it will solve the following conditions: SSS, SAS, ASS (wait, what?), ASA, AAS. it will also tell you if your triangle is ambiguous, but it will sadly not give you the second triangle. it will however, store the complement of the first angle solved into the variable M and then you can solve for the second triangle by running the program again.

um.. yeah. it's handy. and under 1000 bytes (hooray! goal met!)
Title: Re: Triangle Solver
Post by: ASHBAD_ALVIN on November 22, 2010, 05:06:46 pm
PERFECT MY TEST ON GEO IS WEDNESDAY AND I WILL LOVE THIS LIKE A CHILD well not really but great!
Title: Re: Triangle Solver
Post by: nemo on November 22, 2010, 05:08:17 pm
PERFECT MY TEST ON GEO IS WEDNESDAY AND I WILL LOVE THIS LIKE A CHILD well not really but great!

glad i could aid you?
Title: Re: Triangle Solver
Post by: ASHBAD_ALVIN on November 22, 2010, 05:08:52 pm
you should be very glad as I am very happy right now
Title: Re: Triangle Solver
Post by: Munchor on November 22, 2010, 06:37:52 pm
Triangle solver! (this topic is so if i RAM clear my calculator, it's no big deal cause it's now online)

this is a graphical triangle solver. if you give it 3 pieces of information, it will give you the other 3. it has no error checking, so if you get err: domain, the triangle probably does not exist. do not give the triangle solver 4+ pieces of information, it is not smart enough to handle this. it assumes you put in 3. it will solve the following conditions: SSS, SAS, ASS (wait, what?), ASA, AAS. it will also tell you if your triangle is ambiguous, but it will sadly not give you the second triangle. it will however, store the complement of the first angle solved into the variable M and then you can solve for the second triangle by running the program again.

um.. yeah. it's handy. and under 1000 bytes (hooray! goal met!)

Downloaded... Loved! Congratulations, fast for a TI Basic Script. Useful and like the interface!

Liked it!
Title: Re: Triangle Solver
Post by: DJ Omnimaga on November 23, 2010, 12:39:37 am
Lol ASHBAD ALVIN :P

Also nice Nemo, although this might not be very useful to me as my last math class was in June 2003. ;D
Title: Re: Triangle Solver
Post by: meishe91 on November 23, 2010, 02:15:04 am
That's pretty nifty. Sweet, great job :)
Title: Re: Triangle Solver
Post by: Munchor on November 23, 2010, 07:45:57 am
Lol ASHBAD ALVIN :P

Also nice Nemo, although this might not be very useful to me as my last math class was in June 2003. ;D

To me it is very useful! I still have three more years of maths :D
Title: Re: Triangle Solver
Post by: Builderboy on November 23, 2010, 03:22:02 pm
Wow thats impressive!  I wrote a triangle solver back in my day but you had to specify the type of triangle, and it was much larger than 1000 bytes!  Nice job!
Title: Re: Triangle Solver
Post by: nemo on November 23, 2010, 04:07:17 pm
thanks guys!

unfortunately, my math teacher is evil and is making us use non-graphing calculators on the upcoming test. so this was (kind of) a waste, but now i'm 100% sure what i'm doing is correct.
Title: Re: Triangle Solver
Post by: DJ Omnimaga on November 23, 2010, 04:14:28 pm
Sorry to hear :(
Title: Re: Triangle Solver
Post by: ztrumpet on November 23, 2010, 04:19:39 pm
Looks great!  Nice job! ;D
Title: Re: Triangle Solver
Post by: Munchor on November 23, 2010, 04:23:29 pm
thanks guys!

unfortunately, my math teacher is evil and is making us use non-graphing calculators on the upcoming test. so this was (kind of) a waste, but now i'm 100% sure what i'm doing is correct.

Hah, mine would never do so, we told him our scientific calculators were all thrown away when we moved to highscool and would have to BUY new ones :D
Title: Re: Triangle Solver
Post by: nemo on November 23, 2010, 04:27:56 pm
yeah unfortunately my math teacher has a class set of non-graphing calculators... :( oh well.
Title: Re: Triangle Solver
Post by: Darl181 on November 23, 2010, 04:33:49 pm
I did something like that for some geo tests.../me is looking for an "innocent face" smiley
I used cheat.8xg from ticalc.org (http://www.ticalc.org/archives/files/fileinfo/427/42769.html) (renamed to "succeed").  Except it's HUGE!
I was the only one in class with a graphing calculator :P
Title: Re: Triangle Solver
Post by: meishe91 on November 23, 2010, 08:20:37 pm
Well using non-graphing calculators is actually really useful because then you don't get so dependent on all the functions and such. You learn to do it the long way and get a better understanding of how all those tricks and such work, along with how graphing calculators do it :)
Title: Re: Triangle Solver
Post by: yunhua98 on November 23, 2010, 08:23:46 pm
Hey, thats Deep Thought's Cheater!  :D
btw, I had a graphical triangle solver called Extra, But its bigger than 100 bytes, So I'm not going to upload it.  ;)
Title: Re: Triangle Solver
Post by: apcalc on November 23, 2010, 09:19:23 pm
I remember in Geometry I used a 4-function calculator and I thought I was "cheating" by using it. :P

My most "evil" program would probably be one to factor trinomials for the Nspire for my math final last year.  I told my math teacher it could not factor (hey, I didn't lie, it couldn't factor when I told her that). Fifteen minutes of programming later...

If only I had a graphing calculator then... (Actually, that class was the first I ever used a graphing calc.  I couldn't even turn it off the first time I used it :()

Now, my teacher won't let us use calculators (Actually, according to my teacher, it is because the class can't do arithmetic, not because of my skills :P)
Title: Re: Triangle Solver
Post by: Munchor on November 27, 2010, 09:38:15 am
Nemo, do you mind if I include Triangle Solver in Formulum? Don't worry, you would be in the About button of course!
Title: Re: Triangle Solver
Post by: Munchor on December 01, 2010, 02:51:03 pm
if you want to bump, post a post and remove it, you did a double post!!

I already deleted it, also, a few days went between each one.

Nemo, do you mind if I include Triangle Solver in Formulum? Don't worry, you would be in the About button of course!

Now this?
Title: Re: Triangle Solver
Post by: DJ Omnimaga on December 01, 2010, 02:59:54 pm
if you want to bump, post a post and remove it, you did a double post!!
I don't see any double post, plus he can double post fine if it has been 6 hours, also the way you say this is rude because of the exclamation mark. Do not talk to other members like that, otherwise it is worse than double-posting itself.
Title: Re: Triangle Solver
Post by: Munchor on December 01, 2010, 04:51:20 pm
if you want to bump, post a post and remove it, you did a double post!!
I don't see any double post, plus he can double post fine if it has been 6 hours, also the way you say this is rude because of the exclamation mark. Do not talk to other members like that, otherwise it is worse than double-posting itself.

This was my first post bump, I didn't know I had to delete the post after, and I already did so.

I really Nemo's approval :S
Title: Re: Triangle Solver
Post by: nemo on December 01, 2010, 04:53:18 pm
sorry i didn't see this. yeah, you can use it if i get credit.
Title: Re: Triangle Solver
Post by: Munchor on December 01, 2010, 04:54:50 pm
sorry i didn't see this. yeah, you can use it if i get credit.

Yes, then I'm just gonna get your code real quick and add it to my program, and your name to credits. How'd you prefer your name to be?
Title: Re: Triangle Solver
Post by: nemo on December 01, 2010, 04:56:23 pm
just Nemo is fine. thanks for the interest. unfortunately i think i didn't do well on the test. fortunately, she said it's the hardest one of the year though, so i'm not too unhappy about it
Title: Re: Triangle Solver
Post by: Munchor on December 01, 2010, 05:03:48 pm
just Nemo is fine. thanks for the interest. unfortunately i think i didn't do well on the test. fortunately, she said it's the hardest one of the year though, so i'm not too unhappy about it

I'm sorry for you. Me, I can use the graphing calculator, so... that makes things better. I made a maths program that calculates the distance between points in 2D Graphs and even 3D (three axes) graphs, all you have to do is to enter the coordinates for each point and it will measure the distance. I'm thinking of posting it here, but I have to make it english first
Title: Re: Triangle Solver
Post by: FinaleTI on December 01, 2010, 08:15:02 pm
Triangle solver! (this topic is so if i RAM clear my calculator, it's no big deal cause it's now online)

this is a graphical triangle solver. if you give it 3 pieces of information, it will give you the other 3. it has no error checking, so if you get err: domain, the triangle probably does not exist. do not give the triangle solver 4+ pieces of information, it is not smart enough to handle this. it assumes you put in 3. it will solve the following conditions: SSS, SAS, ASS (wait, what?), ASA, AAS. it will also tell you if your triangle is ambiguous, but it will sadly not give you the second triangle. it will however, store the complement of the first angle solved into the variable M and then you can solve for the second triangle by running the program again.

um.. yeah. it's handy. and under 1000 bytes (hooray! goal met!)
I love you.
In a none creepy sort of way.


We're working with triangles right now in my Pre-Calc class, and this helped cut down my homework time severely. (I sometimes have 2-3 hours of homework from that class alone).
I made two triangle solvers (one for AAS and SSA) recently, but they were horribly user unfriendly and unoptimized. The only thing I'm proud of is that if an SSA triangle has two solutions, my solver prints out the info for both. (I believe it does it correctly, at least...)
This saved me and my soul.
So thank you, from the depths of my soul.
[/overlydramaticpost]
Title: Re: Triangle Solver
Post by: DJ Omnimaga on December 02, 2010, 12:57:08 am
Sorry to hear Nemo. Did you got the score yet? Maybe you'll have done better than you think. Sometimes I do an hard test and think I'll fail but finally get a decent score. Then I do an easy test and fail it.
Title: Re: Triangle Solver
Post by: Munchor on December 02, 2010, 04:10:13 pm
Triangle solver! (this topic is so if i RAM clear my calculator, it's no big deal cause it's now online)

this is a graphical triangle solver. if you give it 3 pieces of information, it will give you the other 3. it has no error checking, so if you get err: domain, the triangle probably does not exist. do not give the triangle solver 4+ pieces of information, it is not smart enough to handle this. it assumes you put in 3. it will solve the following conditions: SSS, SAS, ASS (wait, what?), ASA, AAS. it will also tell you if your triangle is ambiguous, but it will sadly not give you the second triangle. it will however, store the complement of the first angle solved into the variable M and then you can solve for the second triangle by running the program again.

um.. yeah. it's handy. and under 1000 bytes (hooray! goal met!)
I love you.
In a none creepy sort of way.


We're working with triangles right now in my Pre-Calc class, and this helped cut down my homework time severely. (I sometimes have 2-3 hours of homework from that class alone).
I made two triangle solvers (one for AAS and SSA) recently, but they were horribly user unfriendly and unoptimized. The only thing I'm proud of is that if an SSA triangle has two solutions, my solver prints out the info for both. (I believe it does it correctly, at least...)
This saved me and my soul.
So thank you, from the depths of my soul.
[/overlydramaticpost]

I love you too.

Wait, that was not to me was it? :'(

Sorry to hear Nemo. Did you got the score yet? Maybe you'll have done better than you think. Sometimes I do an hard test and think I'll fail but finally get a decent score. Then I do an easy test and fail it.

I wonder why that happens to everyone.
Title: Re: Triangle Solver
Post by: nemo on December 02, 2010, 04:12:06 pm
i got an 84%. i am not happy with this, but luckily my teacher recognized that everyone basically bombed the no-calculator part (my friend missed 14 of 16 possible points on that part) and she's letting us retake that portion. if i ace it, i'll be bumped up to a 98%, which i would be extremely happy with.

and FinaleTI, no problem. i imagine i'll be using it later on in life.. and i'd like it to display both triangles for the ambiguous case, but i had a 1000 byte goal to meet so i left it out ;)
Title: Re: Triangle Solver
Post by: Munchor on December 02, 2010, 04:18:55 pm
i got an 84%. i am not happy with this, but luckily my teacher recognize every basically bombed the no-calculator part (my friend missed 14 of 16 possible points on that part) and she's letting us retake that portion. if i ace it, i'll be bumped up to a 98%, which i would be extremely happy with.

and FinaleTI, no problem. i imagine i'll be using it later on in life.. and i'd like it to display both triangles for the ambiguous case, but i had a 1000 byte goal to meet so i left it out ;)


Yes, but an update doesn't count for the byte limit, I'm sure
Title: Re: Triangle Solver
Post by: DJ Omnimaga on December 03, 2010, 12:46:53 am
i got an 84%. i am not happy with this, but luckily my teacher recognized that everyone basically bombed the no-calculator part (my friend missed 14 of 16 possible points on that part) and she's letting us retake that portion. if i ace it, i'll be bumped up to a 98%, which i would be extremely happy with.

and FinaleTI, no problem. i imagine i'll be using it later on in life.. and i'd like it to display both triangles for the ambiguous case, but i had a 1000 byte goal to meet so i left it out ;)
I see. Well for me 84% would be OK since the passing note is 60% and it usually take an average of 80% to get to restricted college classes, but I always liked when I got something better.
Title: Re: Triangle Solver
Post by: Munchor on December 04, 2010, 08:57:05 am
Quote
I see. Well for me 84% would be OK since the passing note is 60% and it usually take an average of 80% to get to restricted college classes, but I always liked when I got something better.

If I went for Informatic, which is what I want, I have an average at the moment of 15.8 out of 20. I would only need 12.9 for Programming.

However, I'm going to medicine, and need 18.3 out of 20, which I can do
Title: Re: Triangle Solver
Post by: DJ Omnimaga on December 04, 2010, 05:21:19 pm
Yeah it depends of what thing you want to major in, really. If the college class you want to have is limited to a certain amount of students, you need the best score possible. It's also worse in high populated areas like New York, because the demand is much higher than the offer. Over here for sciences I think you can get in with 60% passing note in everything, but in USA, sometimes you almost need 100% for some stuff...
Title: Re: Triangle Solver
Post by: Munchor on December 04, 2010, 05:23:58 pm
Yeah it depends of what thing you want to major in, really. If the college class you want to have is limited to a certain amount of students, you need the best score possible. It's also worse in high populated areas like New York, because the demand is much higher than the offer. Over here for sciences I think you can get in with 60% passing note in everything, but in USA, sometimes you almost need 100% for some stuff...

I am in a public school.
My school had the highest average of all public schools in my country.
The director and teachers really push us to the limits.
This is good.
We can get motivated :D