Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Help w/ Law of Sines script

by John M. Dlugosz (Monsignor)
on Aug 02, 2001 at 02:15 UTC ( #101504=note: print w/replies, xml ) Need Help??


in reply to Help w/ Law of Sines script

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://101504]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2023-11-30 05:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?