help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:


From: Maynard Wright
Subject: Re:
Date: Sun, 13 Mar 2016 06:43:45 -0700
User-agent: KMail/4.13.3 (Linux/3.16.0-30-generic; KDE/4.13.3; i686; ; )

On Sunday, March 13, 2016 07:42:57 PM address@hidden wrote:
> --- camilleri.jon
> 
> > Is this correct?
> > 
> > GNU Octave, version 4.0.0
> > Copyright (C) 2015 John W. Eaton and others.
> > This is free software; see the source code for copying conditions.
> > There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
> > FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.
> > 
> > Octave was configured for "i686-w64-mingw32".
> > 
> > Additional information about Octave is available at http://www.octave.org.
> > 
> > Please contribute if you find this software useful.
> > For more information, visit http://www.octave.org/get-involved.html
> > 
> > Read http://www.octave.org/bugs.html to learn how to submit bug reports.
> > For information about changes from previous versions, type 'news'.
> > 
> > >> sin(90);
> > >> ans
> > 
> > ans =  0.89400
> > 
> > >> sin(-90)
> > 
> > ans = -0.89400
> 
> Perhaps what you want to do is
> 
> >> sin(pi/2);
> 
> or
> 
> >> sin(-pi/2);
> 
> Tatsuro
> 

The function sin() expects an argument in radians as Tatsuro indicates.   
Additional trig functions are available that accept arguments in degrees.  
sind() is one of them and sind(90) returns 1.

These may just be wrappers for the traditional, radian-based, functions, but I 
haven't looked.


Maynard Wright





reply via email to

[Prev in Thread] Current Thread [Next in Thread]