Re: [Scilab-users] Find the points of intersection of two curves

2018-01-17 Thread Rafael Guerra
Hi Hermes, You may want to check out this page in French which is very comprehensive: https://perso.univ-rennes1.fr/philippe.roux/scilab/graphiques/fiche_graphiques.html Regards, Rafael ___ users mailing list users@lists.scilab.org

Re: [Scilab-users] Find the points of intersection of two curves

2018-01-17 Thread Hermes
Hello Rafael, Thankful for your help. I think that in Scilab's help there should be examples of this type of graphics. Is there a site where you can see a gallery of "pretentious and intrepid" graphics? It would be a great help

Re: [Scilab-users] Find the points of intersection of two curves

2018-01-17 Thread Rafael Guerra
(still problems with the cut and pasting of code from SciNotes, removed some of the comments now) // START OF CODE clear; clf(); function Sys=F(x) x0=x(1);x1=x(2); Sys(1)=x1^2-x0*x1+x0^2-1; Sys(2)=sin(4*x1^2)+sin(5*x0^2); endfunction function D=Draghilev(x)

Re: [Scilab-users] Find the points of intersection of two curves

2018-01-16 Thread Rafael Guerra
In previous email the code formatting got messed up, fixed it here below: // START OF CODE clear; clf(); function Sys=F(x) x0=x(1);x1=x(2); Sys(1)=x1^2-x0*x1+x0^2-1; Sys(2)=sin(4*x1^2)+sin(5*x0^2); endfunction function D=Draghilev(x)

Re: [Scilab-users] Find the points of intersection of two curves

2018-01-16 Thread Rafael Guerra
Hi Hermes, Check this solution out: // START OF CODE clear; clf(); function Sys=F(x) x0=x(1);x1=x(2); Sys(1)=x1^2-x0*x1+x0^2-1; Sys(2)=sin(4*x1^2)+sin(5*x0^2); endfunction function D=Draghilev(x) x0=x(1);x1=x(2);x2=x(3);x00=ics(1);x01=ics(2);

Re: [Scilab-users] Find the points of intersection of two curves

2018-01-16 Thread Hermes
The correct graph for the script shown should be the following: my apologies -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html ___

Re: [Scilab-users] Find the points of intersection of two curves

2018-01-16 Thread Hermes
Hello Rafael, with your proposal the result is as expected. Thank you I have delayed responding because I wanted to arrive to the next step by my means. But without results: I want to achieve the following graph from the data

Re: [Scilab-users] Find the points of intersection of two curves

2018-01-12 Thread Rafael Guerra
Hi Hermes, Find here below a simple solution using linear interpolation that works fine with your data but would need some further refinement for general arbitrary inputs. // START OF CODE clear; clf(); function Sys=F(x) x0=x(1);x1=x(2); Sys(1)=x1^2-x0*x1+x0^2-1;

[Scilab-users] Find the points of intersection of two curves

2018-01-12 Thread Hermes
Hello, How could I improve the accuracy of intersection points? clear; funcprot(0); timer(); function Sys=F(x) x0=x(1);x1=x(2); Sys(1)=x1^2-x0*x1+x0^2-1; Sys(2)=sin(4*x1^2)+sin(5*x0^2); endfunction function D=Draghilev(x) x0=x(1);x1=x(2);x2=x(3);x00=ics(1);x01=ics(2);