![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re: Help w/ Law of Sines scriptby John M. Dlugosz (Monsignor) |
on Aug 02, 2001 at 02:15 UTC ( #101504=note: print w/replies, xml ) | Need Help?? |
Urrrgh! PM bites again, losing the long reply I typed. Instead of "Preview" it took me to Dragonchild's node, and hitting the Back button just went to the same place ad infinitum. I wish they'd fix that already... I've taken to copying the text to the clipboard before submitting, just in case. Wish I'd done it this time (sigh) So, DC mentioned reducing the redundancy in your code, so I won't retype it. But, I do want to encourage you and give you some food for thought: When I wrote this same thing in high school, I incorporated the law of sines, law of cosines, and the fact that the sum of the angles is 180 into a single unified program. It would prompt you for 3 sides and angles. Enter what you know, or ? to solve for that, or blank for don't know/don't care. Then it tells you what you wanted to know. —John
In Section
Seekers of Perl Wisdom
|
|