[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gambas-user
Subject:    Re: [Gambas-user] trigonometric function
From:       Benoît_Minisini <gambas () users ! sourceforge ! net>
Date:       2012-10-25 16:16:45
Message-ID: 508965ED.5010205 () users ! sourceforge ! net
[Download RAW message or body]

Le 25/10/2012 17:44, piet@laur-net.de a écrit :
>
>
> Hi,
>
> I just got a mathematic problem:
>
> I need the angle alpha and
> x and y are given.
>
> tan(alpha) = x / y
>
> so alpha = tan^-1(x/y)
>
> As I
> put tan^-1(x/y) in my own calculator, it works.
>
> But how do I express
> this in Gambas?
>
> (1 / (tan(x / y)) does'nt return me the same awnser..)
>
>
> Thanks for help
>
> Piet
>

Atn(x / y), or better Ang(x, y) or Atan2(x, y)

See the wiki documentation.

-- 
Benoît Minisini

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic