Author Topic: Triangle Solver  (Read 9139 times)

0 Members and 1 Guest are viewing this topic.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Triangle Solver
« Reply #15 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 :)
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Triangle Solver
« Reply #16 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.  ;)
« Last Edit: November 23, 2010, 08:23:51 pm by yunhua98 »

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Triangle Solver
« Reply #17 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)


Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Triangle Solver
« Reply #18 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!

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Triangle Solver
« Reply #19 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?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Triangle Solver
« Reply #20 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.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Triangle Solver
« Reply #21 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

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Triangle Solver
« Reply #22 on: December 01, 2010, 04:53:18 pm »
sorry i didn't see this. yeah, you can use it if i get credit.


Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Triangle Solver
« Reply #23 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?

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Triangle Solver
« Reply #24 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


Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Triangle Solver
« Reply #25 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

Offline FinaleTI

  • Believe in the pony that believes in you!
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1830
  • Rating: +121/-2
  • Believe in the pony that believes in you!
    • View Profile
    • dmuckerman.tumblr.com
Re: Triangle Solver
« Reply #26 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]


Spoiler For Projects:

My projects haven't been worked on in a while, so they're all on hiatus for the time being. I do hope to eventually return to them in some form or another...

Spoiler For Pokemon TI:
Axe port of Pokemon Red/Blue to the 83+/84+ family. On hold.

Spoiler For Nostalgia:
My big personal project, an original RPG about dimensional travel and a few heroes tasked with saving the world.
Coding-wise, on hold, but I am re-working the story.

Spoiler For Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack. On hold.

Spoiler For Nostalgia Origins: Sky's Story:
Prequel to Nostalgia. On hold, especially while the story is re-worked.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Triangle Solver
« Reply #27 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.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Triangle Solver
« Reply #28 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.

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Triangle Solver
« Reply #29 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 ;)
« Last Edit: December 02, 2010, 04:14:01 pm by nemo »