octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #59615] feature request for sinpi, cospi, yyax


From: Carlo de Falco
Subject: [Octave-bug-tracker] [bug #59615] feature request for sinpi, cospi, yyaxis functions
Date: Fri, 4 Dec 2020 07:34:53 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:83.0) Gecko/20100101 Firefox/83.0

Follow-up Comment #2, bug #59615 (project octave):

Just for reference, it seems that R implements these functions
by wrapping special functions that are available on some systems.
While on other systems it falls back to using 

sin(X * PI) or cos (X * PI)

https://stat.ethz.ch/R-manual/R-devel/library/base/html/Trig.html

For example on my system (mac OS 10.14.6) the following
works


#include <cmath>
#include <iostream>
int
main ()
{
  double x =0;
  std::cin >> x;
  std::cout << __sinpi (x) << std::endl;

  return 0;
}





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59615>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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