On Sun, Sep 27, 2015 at 12:47 PM, avi kaur <kauravi...@gmail.com> wrote: > Hi > > There is function in octave to calculate the inverse tangent of an > angle in degrees i.e. atand(). I did not find any function related to > this in sage. I have to compute it. I tried following in octave: > > octave:1> phiPrime = atand(0.67) > phiPrime = 33.822 > > and in sage it tried > > sage: phiPrime = atanh(0.67) > sage: phiPrime > 0.810743125475137 > > I want to ask that is there any function in sage similar to octave. > The function I used is not that which gives me right answer. I did not > find any similar function. > >
sage: atan_deg = lambda x: RR(atan(x)*180/pi) sage: atan_deg(1) 45.0000000000000 > > -- > Avi kaur > Blog: https://avikashyap620.wordpress.com > "There is no lacking of opportunity, The thing is you do not want to see It" > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-support+unsubscr...@googlegroups.com. > To post to this group, send email to sage-support@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.