The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
System of differenital equations with odesolve
01-26-2024, 08:10 AM
Post: #1
System of differenital equations with odesolve
Dear community,

I want to solve a system of differential equations numerically by using the odesolve command.
I think it should be possible, but I am not able to figure out the correct syntax to do so.
By searching the web I have found the following example:
Code:

DE1:=diff(y1(x),x)=y2(x)
DE2:=diff(y2(x),x)=-y1(x)

IC1:=y1(0)=1
IC2:=y2(0)=0

odesolve({DE1,DE2},{y1(x),y2(x)},{IC1,IC2},x)
However, I know the {} cannot be correct, so I replaced them with [], but it does not work either.
Could somebody please give me a hint to solve this.

Thank you in advance.
Best wishes,
Jo
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
System of differenital equations with odesolve - Sabaism - 01-26-2024 08:10 AM



User(s) browsing this thread: 1 Guest(s)