Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FODEMatrixDiscrete algorithm not working with some functions #78

Closed
khaledharizb opened this issue Jun 5, 2023 · 1 comment
Closed

Comments

@khaledharizb
Copy link

khaledharizb commented Jun 5, 2023

I would like to solve the following problem where the righfunc is given by 8 if x<= 0 and 0 otherwise. However, with FODEMatrixDiscrete() algorithm does not work

h=0.075
f(x) =  (x <= 1) ? 8 : 0;
prob = MultiTermsFODEProblem([1, 1 , 1], [2, 3/2 , 0],  f , [0, 0], (0, 30))
sol = solve(prob, h, FODEMatrixDiscrete())

This example from http://www.mathworks.com/matlabcentral/fileexchange/22071 where the same algorithm is used by Matlab.

@khaledharizb khaledharizb changed the title FODEMatrixDiscrete algorithm not working with some function FODEMatrixDiscrete algorithm not working with some functions Jun 5, 2023
@ErikQQY
Copy link
Member

ErikQQY commented Jul 27, 2023

Solved in #54

@ErikQQY ErikQQY closed this as completed Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants