1. tangents...
- Posted by Mike Fowler <stoner at NELSUN.GEN.NZ> Sep 25, 1997
- 778 views
Hi once again... does anyone know how to find the angle of a triangle in Euphoria? i know how to do it on the calculator: tan z = 9/5 .. z = tan-1(1.8) .. z = 60.9 degrees... BUT euphoria dosen't have tan-1, only tan, which answers 0.03142... any healp appreciated! Thanks :) Mike Fowler - mike.fowler at nelsun.gen.nz o__ --- _,>/'_ --- (_) \(_) --- Tip for the month: Don't have a signature :)
2. Re: tangents...
- Posted by "Carl R. White" <crwhite at COMP.BRADX.XAC.UK> Sep 25, 1997
- 743 views
On Thu, 25 Sep 1997, Mike Fowler wrote: > Hi once again... > does anyone know how to find the angle of a triangle in Euphoria? > > i know how to do it on the calculator: > > tan z = 9/5 .. z = tan-1(1.8) .. z = 60.9 degrees... > > BUT euphoria dosen't have tan-1, only tan, which answers 0.03142... > > any healp appreciated! > > Thanks :) > > Mike Fowler - mike.fowler at nelsun.gen.nz > o__ --- > _,>/'_ --- > (_) \(_) --- > Tip for the month: Don't have a signature :) Euphoria 1.5 has "arctan" to do what you're looking for. Look out for one of the math libraries that are floating around too. My mathbag.e is (I think) available via Irv's ftp site. -- Carl R White | e-mail...: crwhite- at -comp.brad.ac.uk | finger...: crwhite- at -dcsun1.comp.brad.ac.uk | web......: http://www.student.comp.brad.ac.uk/~crwhite/ Anti-Spam: Remove x's from header and change '- at -' to '@' in .sig
3. Re: tangents...
- Posted by Mike Fowler <stoner at NELSUN.GEN.NZ> Sep 27, 1997
- 787 views
-> > Hi once again... -> > does anyone know how to find the angle of a triangle in Euphoria? -> > BUT euphoria dosen't have tan-1, only tan, which answers 0.03142... -> > Thanks :) -> Euphoria 1.5 has "arctan" to do what you're looking for. -> Look out for one of the math libraries that are floating around too. -> My mathbag.e is (I think) available via Irv's ftp site. I tried that before i posted this, but got a wrong answer still. I must have done that maths wrong somewhere :( anyway thanks! :) Mike Fowler - mike.fowler at nelsun.gen.nz o__ --- _,>/'_ --- (_) \(_) --- Tip for the month: Don't have a signature :)
4. tangents...
- Posted by Ad Rienks <Ad_Rienks at COMPUSERVE.COM> Sep 27, 1997
- 792 views
Mike Fowler wrote: >Hi once again... does anyone know how to find the angle of a >triangle in Euphoria? >i know how to do it on the calculator: >tan z =3D 9/5 .. z =3D tan-1(1.8) .. z =3D 60.9 degrees... >BUT euphoria dosen't have tan-1, only tan, which answers >0.03142... >any healp appreciated! >Thanks :) >Mike Fowler - mike.fowler at nelsun.gen.nz = Hi Mike, You can use arctan in Euphoria, but the answer is in radians. To get the answer in degrees, as on your calculator, you should multiply it by 180/P= i. -- calculations using arctan constant Pi =3D 3.14159265359 atom a, b a =3D 9 b =3D 5 printf(1, "The angles are: %.1f and %.1f degrees.", arctan(a/b) * 180/Pi & arctan(b/a) * 180/Pi) while get_key() =3D -1 do = end while Sincerely, Ad Rienks email Ad_Rienks at compuserve.com writing at 11:07 , = on zaterdag 27 september 1997 Using EMail Assist for WinCIM
5. tangents...
- Posted by Mike Fowler <stoner at NELSUN.GEN.NZ> Sep 28, 1997
- 761 views
MF>BUT euphoria dosen't have tan-1, only tan, which answers MF>0.03142... MF>any healp appreciated! AR> Hi Mike, AR> You can use arctan in Euphoria, but the answer is in radians. To get AR> the answer in degrees, as on your calculator, you should multiply it AR> by 180/P= i. thanks!... ive got it all going now :) that was just the thing :) Mike Fowler - mike.fowler at nelsun.gen.nz o__ --- _,>/'_ --- (_) \(_) --- Tip for the month: Don't have a signature :)
6. Re: tangents...
- Posted by Daniel Berstein <danielberstein at USA.NET> Sep 28, 1997
- 750 views
> -> My mathbag.e is (I think) available via Irv's ftp site. I looked for matbag.e on Irv's site and didn't found it.... I would like to have it. Is there another way to get it? Regards, Daniel Berstein danielberstein at usa.net http://www.geocities.com/SiliconValley/Heights/9316
7. Re: tangents...
- Posted by "Carl R. White" <crwhite at COMP.BRADX.XAC.UK> Sep 29, 1997
- 799 views
On Sun, 28 Sep 1997, Daniel Berstein wrote: > > -> My mathbag.e is (I think) available via Irv's ftp site. > > I looked for matbag.e on Irv's site and didn't found it.... I would > like to have it. Is there another way to get it? > It's probably hidden in a file called "cyrek1.zip", as is the rest of my Euphoria code, upto the date on the zipfile... If you still can't get it, ask for it via e-mail. Some of the routines crash out with extreme values e.g. arccos(-1), but I'm working on a fix, and I might have a better version available in the near future. -- Carl R White | e-mail...: crwhite- at -comp.brad.ac.uk | finger...: crwhite- at -dcsun1.comp.brad.ac.uk | web......: http://www.student.comp.brad.ac.uk/~crwhite/ Anti-Spam: Remove x's from header and change '- at -' to '@' in .sig