Aryabhata's sine approximation : Conversion for use with interval of $[-pi,pi]$












2












$begingroup$


There's this sine approximation (mentioned in title) which works over the interval $[0, pi]$:
$$
sin x approx frac{16x(pi-x)} {5pi^2-4x(pi-x)}
$$

With little changes it can be put work over the interval $[-pi, 0]$:
$$
sin x approx frac{-16x(-pi-x)} {5pi^2-4x(-pi-x)}
$$

Approximation results as - https://www.desmos.com/calculator/cvoewagqer



Is there any change to join these two formulas into one equation to work in range $[-pi, pi]$? If there's ... how?



Source:
P.Giblin's paper: https://www.liverpool.ac.uk/~pjgiblin/papers/sine-approx.pdf










share|cite|improve this question











$endgroup$












  • $begingroup$
    Multiply the first one by sign(x) and then replace all the other x's by $|x|?$
    $endgroup$
    – Ian
    Nov 24 '18 at 12:05












  • $begingroup$
    Welcome to MSE. For some basic information about writing mathematics at this site see, e.g., basic help on mathjax notation, mathjax tutorial and quick reference, main meta site math tutorial and equation editing how-to.
    $endgroup$
    – José Carlos Santos
    Nov 24 '18 at 12:06










  • $begingroup$
    @Ian Thanks, this idea works as seen in plot - tinyurl.com/ya9fsgb2
    $endgroup$
    – Juha P
    Nov 25 '18 at 6:53
















2












$begingroup$


There's this sine approximation (mentioned in title) which works over the interval $[0, pi]$:
$$
sin x approx frac{16x(pi-x)} {5pi^2-4x(pi-x)}
$$

With little changes it can be put work over the interval $[-pi, 0]$:
$$
sin x approx frac{-16x(-pi-x)} {5pi^2-4x(-pi-x)}
$$

Approximation results as - https://www.desmos.com/calculator/cvoewagqer



Is there any change to join these two formulas into one equation to work in range $[-pi, pi]$? If there's ... how?



Source:
P.Giblin's paper: https://www.liverpool.ac.uk/~pjgiblin/papers/sine-approx.pdf










share|cite|improve this question











$endgroup$












  • $begingroup$
    Multiply the first one by sign(x) and then replace all the other x's by $|x|?$
    $endgroup$
    – Ian
    Nov 24 '18 at 12:05












  • $begingroup$
    Welcome to MSE. For some basic information about writing mathematics at this site see, e.g., basic help on mathjax notation, mathjax tutorial and quick reference, main meta site math tutorial and equation editing how-to.
    $endgroup$
    – José Carlos Santos
    Nov 24 '18 at 12:06










  • $begingroup$
    @Ian Thanks, this idea works as seen in plot - tinyurl.com/ya9fsgb2
    $endgroup$
    – Juha P
    Nov 25 '18 at 6:53














2












2








2





$begingroup$


There's this sine approximation (mentioned in title) which works over the interval $[0, pi]$:
$$
sin x approx frac{16x(pi-x)} {5pi^2-4x(pi-x)}
$$

With little changes it can be put work over the interval $[-pi, 0]$:
$$
sin x approx frac{-16x(-pi-x)} {5pi^2-4x(-pi-x)}
$$

Approximation results as - https://www.desmos.com/calculator/cvoewagqer



Is there any change to join these two formulas into one equation to work in range $[-pi, pi]$? If there's ... how?



Source:
P.Giblin's paper: https://www.liverpool.ac.uk/~pjgiblin/papers/sine-approx.pdf










share|cite|improve this question











$endgroup$




There's this sine approximation (mentioned in title) which works over the interval $[0, pi]$:
$$
sin x approx frac{16x(pi-x)} {5pi^2-4x(pi-x)}
$$

With little changes it can be put work over the interval $[-pi, 0]$:
$$
sin x approx frac{-16x(-pi-x)} {5pi^2-4x(-pi-x)}
$$

Approximation results as - https://www.desmos.com/calculator/cvoewagqer



Is there any change to join these two formulas into one equation to work in range $[-pi, pi]$? If there's ... how?



Source:
P.Giblin's paper: https://www.liverpool.ac.uk/~pjgiblin/papers/sine-approx.pdf







trigonometry polynomials approximation






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Nov 24 '18 at 15:29







Juha P

















asked Nov 24 '18 at 12:03









Juha PJuha P

112




112












  • $begingroup$
    Multiply the first one by sign(x) and then replace all the other x's by $|x|?$
    $endgroup$
    – Ian
    Nov 24 '18 at 12:05












  • $begingroup$
    Welcome to MSE. For some basic information about writing mathematics at this site see, e.g., basic help on mathjax notation, mathjax tutorial and quick reference, main meta site math tutorial and equation editing how-to.
    $endgroup$
    – José Carlos Santos
    Nov 24 '18 at 12:06










  • $begingroup$
    @Ian Thanks, this idea works as seen in plot - tinyurl.com/ya9fsgb2
    $endgroup$
    – Juha P
    Nov 25 '18 at 6:53


















  • $begingroup$
    Multiply the first one by sign(x) and then replace all the other x's by $|x|?$
    $endgroup$
    – Ian
    Nov 24 '18 at 12:05












  • $begingroup$
    Welcome to MSE. For some basic information about writing mathematics at this site see, e.g., basic help on mathjax notation, mathjax tutorial and quick reference, main meta site math tutorial and equation editing how-to.
    $endgroup$
    – José Carlos Santos
    Nov 24 '18 at 12:06










  • $begingroup$
    @Ian Thanks, this idea works as seen in plot - tinyurl.com/ya9fsgb2
    $endgroup$
    – Juha P
    Nov 25 '18 at 6:53
















$begingroup$
Multiply the first one by sign(x) and then replace all the other x's by $|x|?$
$endgroup$
– Ian
Nov 24 '18 at 12:05






$begingroup$
Multiply the first one by sign(x) and then replace all the other x's by $|x|?$
$endgroup$
– Ian
Nov 24 '18 at 12:05














$begingroup$
Welcome to MSE. For some basic information about writing mathematics at this site see, e.g., basic help on mathjax notation, mathjax tutorial and quick reference, main meta site math tutorial and equation editing how-to.
$endgroup$
– José Carlos Santos
Nov 24 '18 at 12:06




$begingroup$
Welcome to MSE. For some basic information about writing mathematics at this site see, e.g., basic help on mathjax notation, mathjax tutorial and quick reference, main meta site math tutorial and equation editing how-to.
$endgroup$
– José Carlos Santos
Nov 24 '18 at 12:06












$begingroup$
@Ian Thanks, this idea works as seen in plot - tinyurl.com/ya9fsgb2
$endgroup$
– Juha P
Nov 25 '18 at 6:53




$begingroup$
@Ian Thanks, this idea works as seen in plot - tinyurl.com/ya9fsgb2
$endgroup$
– Juha P
Nov 25 '18 at 6:53










1 Answer
1






active

oldest

votes


















0












$begingroup$

How about $$ sin x = (text{sgn}(x) 16x(text{sgn}(x)pi-x) / 5pi^2-4x(text{sgn}(x)pi-x))$$



(*This is purely based on the formulae given.)






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Thanks, this idea works (after fixing parentheses) as seen in plot - tinyurl.com/y9dsxpb5
    $endgroup$
    – Juha P
    Nov 25 '18 at 6:54











Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3011476%2faryabhatas-sine-approximation-conversion-for-use-with-interval-of-pi-pi%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0












$begingroup$

How about $$ sin x = (text{sgn}(x) 16x(text{sgn}(x)pi-x) / 5pi^2-4x(text{sgn}(x)pi-x))$$



(*This is purely based on the formulae given.)






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Thanks, this idea works (after fixing parentheses) as seen in plot - tinyurl.com/y9dsxpb5
    $endgroup$
    – Juha P
    Nov 25 '18 at 6:54
















0












$begingroup$

How about $$ sin x = (text{sgn}(x) 16x(text{sgn}(x)pi-x) / 5pi^2-4x(text{sgn}(x)pi-x))$$



(*This is purely based on the formulae given.)






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Thanks, this idea works (after fixing parentheses) as seen in plot - tinyurl.com/y9dsxpb5
    $endgroup$
    – Juha P
    Nov 25 '18 at 6:54














0












0








0





$begingroup$

How about $$ sin x = (text{sgn}(x) 16x(text{sgn}(x)pi-x) / 5pi^2-4x(text{sgn}(x)pi-x))$$



(*This is purely based on the formulae given.)






share|cite|improve this answer









$endgroup$



How about $$ sin x = (text{sgn}(x) 16x(text{sgn}(x)pi-x) / 5pi^2-4x(text{sgn}(x)pi-x))$$



(*This is purely based on the formulae given.)







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Nov 24 '18 at 12:54









Yadati KiranYadati Kiran

1,751619




1,751619












  • $begingroup$
    Thanks, this idea works (after fixing parentheses) as seen in plot - tinyurl.com/y9dsxpb5
    $endgroup$
    – Juha P
    Nov 25 '18 at 6:54


















  • $begingroup$
    Thanks, this idea works (after fixing parentheses) as seen in plot - tinyurl.com/y9dsxpb5
    $endgroup$
    – Juha P
    Nov 25 '18 at 6:54
















$begingroup$
Thanks, this idea works (after fixing parentheses) as seen in plot - tinyurl.com/y9dsxpb5
$endgroup$
– Juha P
Nov 25 '18 at 6:54




$begingroup$
Thanks, this idea works (after fixing parentheses) as seen in plot - tinyurl.com/y9dsxpb5
$endgroup$
– Juha P
Nov 25 '18 at 6:54


















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3011476%2faryabhatas-sine-approximation-conversion-for-use-with-interval-of-pi-pi%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

ComboBox Display Member on multiple fields

Is it possible to collect Nectar points via Trainline?