Math Functions both TeX and Infix NotationChanging colors of MATH functions and DRAWING linesDefining a...
Which classes are needed to have access to every spell in the PHB?
Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?
Why is a very small peak with larger m/z not considered to be the molecular ion?
Recommendation letter by significant other if you worked with them professionally?
When Schnorr signatures are part of Bitcoin will it be possible validate each block with only one signature validation?
From an axiomatic set theoric approach why can we take uncountable unions?
Is it possible that a question has only two answers?
This Alpine town?
What will happen if my luggage gets delayed?
What is the generally accepted pronunciation of “topoi”?
After `ssh` without `-X` to a machine, is it possible to change `$DISPLAY` to make it work like `ssh -X`?
I can't die. Who am I?
How do we create new idioms and use them in a novel?
Does "Until when" sound natural for native speakers?
How to resolve: Reviewer #1 says remove section X vs. Reviewer #2 says expand section X
Signed and unsigned numbers
Is a piano played in the same way as a harmonium?
Making a kiddush for a girl that has hard time finding shidduch
What are some noteworthy "mic-drop" moments in math?
Getting the || sign while using Kurier
What is Tony Stark injecting into himself in Iron Man 3?
Can't make sense of a paragraph from Lovecraft
Why does cron require MTA for logging?
Doubts in understanding some concepts of potential energy
Math Functions both TeX and Infix Notation
Changing colors of MATH functions and DRAWING linesDefining a phrase containing math and text usable in both math and text modeMath notation and FontsIf statement in math notation using latexBehavior of , in both text and math modeEpsilon and log functionsMath notation in LaTeX?Writing functions and LaTeXcmbright and math functionsError on array using math notation
I am trying to automate plotting graphs of mathematical functions. For that I need infix (or RPN) notation. I also want to annotate the output automatically with the correct mathmode of TeX.
For example I want to generate
sin(x) % infix (in Radian)
x RadtoDeg sin % RPN (in degree)
sin(x) % TeX (no conversion, just display)
in one go from one source. As a source I am willing to accept any of the three (or even a fourth notation if necessary).
A solution should be able to handle pi and Euler.
There is the infixtoRPN package that does half of what I want, but does not produce TeX output as far as I know.
Using another programming language might be possible as well. It's just that I don't know where to start.
math-mode
add a comment |
I am trying to automate plotting graphs of mathematical functions. For that I need infix (or RPN) notation. I also want to annotate the output automatically with the correct mathmode of TeX.
For example I want to generate
sin(x) % infix (in Radian)
x RadtoDeg sin % RPN (in degree)
sin(x) % TeX (no conversion, just display)
in one go from one source. As a source I am willing to accept any of the three (or even a fourth notation if necessary).
A solution should be able to handle pi and Euler.
There is the infixtoRPN package that does half of what I want, but does not produce TeX output as far as I know.
Using another programming language might be possible as well. It's just that I don't know where to start.
math-mode
3
why just rad in the middle one? why not assume the same definition of sin in all three syntax?
– David Carlisle
Feb 19 at 20:25
What would be beneficial is to provide a minimal use case so community members interested in answering the question can figure out what your input would look like, as well as the expected output.
– Werner
Feb 19 at 22:24
@DavidCarlisle Because for some reason the definitions do not coincide: infixsin(x)assumes radian, but RPNx sinassumes degrees. At least inpstricks.
– fborchers
25 mins ago
you didn't mention pstricks until this comment
– David Carlisle
10 mins ago
add a comment |
I am trying to automate plotting graphs of mathematical functions. For that I need infix (or RPN) notation. I also want to annotate the output automatically with the correct mathmode of TeX.
For example I want to generate
sin(x) % infix (in Radian)
x RadtoDeg sin % RPN (in degree)
sin(x) % TeX (no conversion, just display)
in one go from one source. As a source I am willing to accept any of the three (or even a fourth notation if necessary).
A solution should be able to handle pi and Euler.
There is the infixtoRPN package that does half of what I want, but does not produce TeX output as far as I know.
Using another programming language might be possible as well. It's just that I don't know where to start.
math-mode
I am trying to automate plotting graphs of mathematical functions. For that I need infix (or RPN) notation. I also want to annotate the output automatically with the correct mathmode of TeX.
For example I want to generate
sin(x) % infix (in Radian)
x RadtoDeg sin % RPN (in degree)
sin(x) % TeX (no conversion, just display)
in one go from one source. As a source I am willing to accept any of the three (or even a fourth notation if necessary).
A solution should be able to handle pi and Euler.
There is the infixtoRPN package that does half of what I want, but does not produce TeX output as far as I know.
Using another programming language might be possible as well. It's just that I don't know where to start.
math-mode
math-mode
edited 27 mins ago
fborchers
asked Feb 19 at 20:12
fborchersfborchers
687
687
3
why just rad in the middle one? why not assume the same definition of sin in all three syntax?
– David Carlisle
Feb 19 at 20:25
What would be beneficial is to provide a minimal use case so community members interested in answering the question can figure out what your input would look like, as well as the expected output.
– Werner
Feb 19 at 22:24
@DavidCarlisle Because for some reason the definitions do not coincide: infixsin(x)assumes radian, but RPNx sinassumes degrees. At least inpstricks.
– fborchers
25 mins ago
you didn't mention pstricks until this comment
– David Carlisle
10 mins ago
add a comment |
3
why just rad in the middle one? why not assume the same definition of sin in all three syntax?
– David Carlisle
Feb 19 at 20:25
What would be beneficial is to provide a minimal use case so community members interested in answering the question can figure out what your input would look like, as well as the expected output.
– Werner
Feb 19 at 22:24
@DavidCarlisle Because for some reason the definitions do not coincide: infixsin(x)assumes radian, but RPNx sinassumes degrees. At least inpstricks.
– fborchers
25 mins ago
you didn't mention pstricks until this comment
– David Carlisle
10 mins ago
3
3
why just rad in the middle one? why not assume the same definition of sin in all three syntax?
– David Carlisle
Feb 19 at 20:25
why just rad in the middle one? why not assume the same definition of sin in all three syntax?
– David Carlisle
Feb 19 at 20:25
What would be beneficial is to provide a minimal use case so community members interested in answering the question can figure out what your input would look like, as well as the expected output.
– Werner
Feb 19 at 22:24
What would be beneficial is to provide a minimal use case so community members interested in answering the question can figure out what your input would look like, as well as the expected output.
– Werner
Feb 19 at 22:24
@DavidCarlisle Because for some reason the definitions do not coincide: infix
sin(x) assumes radian, but RPN x sin assumes degrees. At least in pstricks.– fborchers
25 mins ago
@DavidCarlisle Because for some reason the definitions do not coincide: infix
sin(x) assumes radian, but RPN x sin assumes degrees. At least in pstricks.– fborchers
25 mins ago
you didn't mention pstricks until this comment
– David Carlisle
10 mins ago
you didn't mention pstricks until this comment
– David Carlisle
10 mins ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f475730%2fmath-functions-both-tex-and-infix-notation%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to TeX - LaTeX 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.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f475730%2fmath-functions-both-tex-and-infix-notation%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
3
why just rad in the middle one? why not assume the same definition of sin in all three syntax?
– David Carlisle
Feb 19 at 20:25
What would be beneficial is to provide a minimal use case so community members interested in answering the question can figure out what your input would look like, as well as the expected output.
– Werner
Feb 19 at 22:24
@DavidCarlisle Because for some reason the definitions do not coincide: infix
sin(x)assumes radian, but RPNx sinassumes degrees. At least inpstricks.– fborchers
25 mins ago
you didn't mention pstricks until this comment
– David Carlisle
10 mins ago