|
From: | Nicholas Jankowski |
Subject: | [Octave-bug-tracker] [bug #59615] feature request for sinpi, cospi, yyaxis functions |
Date: | Mon, 7 Dec 2020 21:28:45 -0500 (EST) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 |
Follow-up Comment #5, bug #59615 (project octave): from a compatibility standpoint: matlab apparently introduced some of these in v2018b: sinpi https://www.mathworks.com/help/matlab/ref/double.sinpi.html Y = sinpi(X) computes sin(X*pi) without explicitly computing X*pi. This calculation is more accurate than sin(X*pi) because the floating-point value of pi is an approximation of π. In particular: For integers, sinpi(n) is exactly zero. For odd integers, sinpi(n/2) is +1 or -1. similarly cospi https://www.mathworks.com/help/matlab/ref/double.cospi.html since it was mentioned in the title, yyaxis was added in 2016 and has some similarity to plotyy: https://www.mathworks.com/help/matlab/ref/yyaxis.html according to the help "yyaxis function creates one Axes object with two y-axes. plotyy creates two overlaid Axes objects that can get out of sync. You can use yyaxis with any 2-D plotting function. plotyy is limited to working with plotting functions of the form function(x,y). It does not work with other plotting functions, such as errorbar." _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?59615> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |