![]() ![]() I am searching for help in other domains too. Now I don't have to worry about coping with Algebra. With the Algebrator it feels like there's only one teacher, and a good one too. Moving from town to town is hard, especially when you have to understand every teacher's way of teaching. The step-by-step approach is wonderful!!! William Marks, OH You guys are GREAT!! It has been 20 years since I have even thought about Algebra, now with my daughter I want to be able to help her. Notice that even if t (the independent variable) does not explicitly appear in your system of ODEs, it still needs to be an argument of f().Thank to be very quick to answer my question, I will recommend you all over the world. -y is a vector 2x1: y(1) = theta, y(2) = theta' -the second argument should always be the dependent variables -the first argument should always be the independe variable First, you need to define a function to represent the system of ODEs, and Step 1 in the link you provided shows you what to do: function z = f(t,y) To solve this, you need to use ode(), which can employ many methods, Runge-Kutta included. I only kept it because I was trying to mimic the example on the official Scilab page. So, I know how to do this on pen and paper. I need to convert the second-order ODE into a system of first-order ODEs and then I need to write a function to represent such system. Just to provide some mathematical context, this is the differential equation that describes the pendulum problem.īased on comments, I am updating this post. ![]() The final plot should be something like the picture bellow, an ellipse: However, it is not clear for me how I can change this for the specific differential equation that I showed above. Try xcos_simulate(scs_m, 4) catch disp(lasterror()) end Start the timer, launch the simulation and display time Select the solver Runge-Kutta and set the precision ImportXcosDiagram("SCI/modules/xcos/examples/solvers/ODE_Example.zcos") The suggested code is: // Import the diagram and set the ending time I tried to follow these instructions on the official "Scilab Help": I just need to solve this and plot the result on the plane: I need to solve this differential equation using Runge-Kytta 4(5) on Scilab: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |