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

Is there any functions like get_du(::integrator)? #171

Open
YiboXia94 opened this issue Mar 28, 2023 · 5 comments
Open

Is there any functions like get_du(::integrator)? #171

YiboXia94 opened this issue Mar 28, 2023 · 5 comments
Labels
qol quality of life

Comments

@YiboXia94
Copy link

I notice that in the latest version of dynamicalsystems.jl ds becomes the integrator itself. It's a good improvement but I don't know how to get the derivative via get_du() now. Could we have the same function?

@Datseris
Copy link
Member

What does derivative mean here? I guess you have a continuous time system and you want the output of the dynamic rule.

Then you do f = dynamic_rule(ds) to get the derivative function and depending on whether it is in place or out of place you can do current_state(ds) appropriately to get the derivative.

@Datseris
Copy link
Member

but I guess a convenience function dynamic_rule_output(ds) would work as well if you wanna contribute it!

@Datseris Datseris added the qol quality of life label Mar 28, 2023
@YiboXia94
Copy link
Author

What does derivative mean here?

derivative I mean here is the real-time derivative value, function get_du can be found in https://docs.sciml.ai/DiffEqDocs/dev/basics/integrator/#SciMLBase.get_du.

but I guess a convenience function dynamic_rule_output(ds) would work as well if you wanna contribute it!

Yes, I would write one just like get_du() in DifferentialEquations.jl

@YiboXia94
Copy link
Author

hello Datseris!

functions have been added, please see request #172.

Have a nice day!

@Datseris
Copy link
Member

Thanks, but you don't have to write that you've opened a PR, I can see the PR immediatelly in the notifications ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
qol quality of life
Projects
None yet
Development

No branches or pull requests

2 participants