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

DomainError: Exponentiation yielding a complex result requires a complex argument. #53

Open
anandijain opened this issue May 26, 2021 · 1 comment

Comments

@anandijain
Copy link
Contributor

https://models.cellml.org/workspace/iyer_hajjar_armoundas_2007/@@file

ERROR: LoadError: DomainError with -0.14962747399673745:
--
Exponentiation yielding a complex result requires a complex argument.
Replace x^y with (x+0im)^y, Complex(x)^y, or similar.

I figured it would be good to have a tracker issue on this one, since it's come up before but only discussed on slack.

@shahriariravanian I forget, this issue would be quite difficult to resolve, right?

@shahriariravanian
Copy link
Collaborator

This usually happens because the model is unstable and you get something like a negative argument to a log or, as in here, a negative number raised to a non-integer power. It can be fixed by adjusting the solver and its parameters (smaller dt and such) but we are using a generic ODE solver to test the models. The actual user of a model should test different solvers and parameters to find the right combinations.

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