Vector field for a system of odes












2















Assume that you have the ode system
x'=xy-y,
y'=xy-x



How would one use pst-ode.sty to draw trajectories and vectorfield, say in the t-y plane?










share|improve this question


















  • 2





    Welcome to TeX.SE! Please show us the code you have tried so far.

    – Kurt
    Mar 16 at 16:43
















2















Assume that you have the ode system
x'=xy-y,
y'=xy-x



How would one use pst-ode.sty to draw trajectories and vectorfield, say in the t-y plane?










share|improve this question


















  • 2





    Welcome to TeX.SE! Please show us the code you have tried so far.

    – Kurt
    Mar 16 at 16:43














2












2








2








Assume that you have the ode system
x'=xy-y,
y'=xy-x



How would one use pst-ode.sty to draw trajectories and vectorfield, say in the t-y plane?










share|improve this question














Assume that you have the ode system
x'=xy-y,
y'=xy-x



How would one use pst-ode.sty to draw trajectories and vectorfield, say in the t-y plane?







pstricks






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 16 at 14:58









AntonisAntonis

111




111








  • 2





    Welcome to TeX.SE! Please show us the code you have tried so far.

    – Kurt
    Mar 16 at 16:43














  • 2





    Welcome to TeX.SE! Please show us the code you have tried so far.

    – Kurt
    Mar 16 at 16:43








2




2





Welcome to TeX.SE! Please show us the code you have tried so far.

– Kurt
Mar 16 at 16:43





Welcome to TeX.SE! Please show us the code you have tried so far.

– Kurt
Mar 16 at 16:43










1 Answer
1






active

oldest

votes


















2














documentclass{article}
usepackage{pst-ode,pst-plot}
begin{document}
psset{xAxisLabel=$t$,xAxisLabelPos={c,-6ex},yAxisLabelPos={-3ex,c}}
begin{psgraph}(0,0)(0,0)(-10,1){10cm}{2.5cm}
pstODEsolve[algebraic]{TY}{0 1}{0.1}{4.5}{100}{0 0.1}{
x[0]*x[1]-x[1] | x[0]*x[1]-x[0]
}
listplot{TY}
end{psgraph}
end{document}


I have no idea what parameter you have for x'(0) and y'(0)



enter image description here






share|improve this answer
























  • Dear Herbert thank you. Dear Kurt I have tried something similar to Herbert's code. My main issue is how do you deal with the vector field. If I am not mistaken the psVectorfield command takes care of an ode with one uknown function. Here we have a system with two functions x(t) and y(t). How do you deal with this? So about the vector field Kurt, I have no code I tried because I have no idea how to setup such a command.

    – Antonis
    Mar 17 at 20:09











  • Nobody knows? So maybe it is not supported?

    – Antonis
    Mar 20 at 7:15











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479798%2fvector-field-for-a-system-of-odes%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









2














documentclass{article}
usepackage{pst-ode,pst-plot}
begin{document}
psset{xAxisLabel=$t$,xAxisLabelPos={c,-6ex},yAxisLabelPos={-3ex,c}}
begin{psgraph}(0,0)(0,0)(-10,1){10cm}{2.5cm}
pstODEsolve[algebraic]{TY}{0 1}{0.1}{4.5}{100}{0 0.1}{
x[0]*x[1]-x[1] | x[0]*x[1]-x[0]
}
listplot{TY}
end{psgraph}
end{document}


I have no idea what parameter you have for x'(0) and y'(0)



enter image description here






share|improve this answer
























  • Dear Herbert thank you. Dear Kurt I have tried something similar to Herbert's code. My main issue is how do you deal with the vector field. If I am not mistaken the psVectorfield command takes care of an ode with one uknown function. Here we have a system with two functions x(t) and y(t). How do you deal with this? So about the vector field Kurt, I have no code I tried because I have no idea how to setup such a command.

    – Antonis
    Mar 17 at 20:09











  • Nobody knows? So maybe it is not supported?

    – Antonis
    Mar 20 at 7:15
















2














documentclass{article}
usepackage{pst-ode,pst-plot}
begin{document}
psset{xAxisLabel=$t$,xAxisLabelPos={c,-6ex},yAxisLabelPos={-3ex,c}}
begin{psgraph}(0,0)(0,0)(-10,1){10cm}{2.5cm}
pstODEsolve[algebraic]{TY}{0 1}{0.1}{4.5}{100}{0 0.1}{
x[0]*x[1]-x[1] | x[0]*x[1]-x[0]
}
listplot{TY}
end{psgraph}
end{document}


I have no idea what parameter you have for x'(0) and y'(0)



enter image description here






share|improve this answer
























  • Dear Herbert thank you. Dear Kurt I have tried something similar to Herbert's code. My main issue is how do you deal with the vector field. If I am not mistaken the psVectorfield command takes care of an ode with one uknown function. Here we have a system with two functions x(t) and y(t). How do you deal with this? So about the vector field Kurt, I have no code I tried because I have no idea how to setup such a command.

    – Antonis
    Mar 17 at 20:09











  • Nobody knows? So maybe it is not supported?

    – Antonis
    Mar 20 at 7:15














2












2








2







documentclass{article}
usepackage{pst-ode,pst-plot}
begin{document}
psset{xAxisLabel=$t$,xAxisLabelPos={c,-6ex},yAxisLabelPos={-3ex,c}}
begin{psgraph}(0,0)(0,0)(-10,1){10cm}{2.5cm}
pstODEsolve[algebraic]{TY}{0 1}{0.1}{4.5}{100}{0 0.1}{
x[0]*x[1]-x[1] | x[0]*x[1]-x[0]
}
listplot{TY}
end{psgraph}
end{document}


I have no idea what parameter you have for x'(0) and y'(0)



enter image description here






share|improve this answer













documentclass{article}
usepackage{pst-ode,pst-plot}
begin{document}
psset{xAxisLabel=$t$,xAxisLabelPos={c,-6ex},yAxisLabelPos={-3ex,c}}
begin{psgraph}(0,0)(0,0)(-10,1){10cm}{2.5cm}
pstODEsolve[algebraic]{TY}{0 1}{0.1}{4.5}{100}{0 0.1}{
x[0]*x[1]-x[1] | x[0]*x[1]-x[0]
}
listplot{TY}
end{psgraph}
end{document}


I have no idea what parameter you have for x'(0) and y'(0)



enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 16 at 18:11









HerbertHerbert

276k25419734




276k25419734













  • Dear Herbert thank you. Dear Kurt I have tried something similar to Herbert's code. My main issue is how do you deal with the vector field. If I am not mistaken the psVectorfield command takes care of an ode with one uknown function. Here we have a system with two functions x(t) and y(t). How do you deal with this? So about the vector field Kurt, I have no code I tried because I have no idea how to setup such a command.

    – Antonis
    Mar 17 at 20:09











  • Nobody knows? So maybe it is not supported?

    – Antonis
    Mar 20 at 7:15



















  • Dear Herbert thank you. Dear Kurt I have tried something similar to Herbert's code. My main issue is how do you deal with the vector field. If I am not mistaken the psVectorfield command takes care of an ode with one uknown function. Here we have a system with two functions x(t) and y(t). How do you deal with this? So about the vector field Kurt, I have no code I tried because I have no idea how to setup such a command.

    – Antonis
    Mar 17 at 20:09











  • Nobody knows? So maybe it is not supported?

    – Antonis
    Mar 20 at 7:15

















Dear Herbert thank you. Dear Kurt I have tried something similar to Herbert's code. My main issue is how do you deal with the vector field. If I am not mistaken the psVectorfield command takes care of an ode with one uknown function. Here we have a system with two functions x(t) and y(t). How do you deal with this? So about the vector field Kurt, I have no code I tried because I have no idea how to setup such a command.

– Antonis
Mar 17 at 20:09





Dear Herbert thank you. Dear Kurt I have tried something similar to Herbert's code. My main issue is how do you deal with the vector field. If I am not mistaken the psVectorfield command takes care of an ode with one uknown function. Here we have a system with two functions x(t) and y(t). How do you deal with this? So about the vector field Kurt, I have no code I tried because I have no idea how to setup such a command.

– Antonis
Mar 17 at 20:09













Nobody knows? So maybe it is not supported?

– Antonis
Mar 20 at 7:15





Nobody knows? So maybe it is not supported?

– Antonis
Mar 20 at 7:15


















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479798%2fvector-field-for-a-system-of-odes%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?