Skip to content

Domain error in Simulate #48

@DarioSlaifsteinSk

Description

@DarioSlaifsteinSk

Hi!
I'm getting

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

from line 224 in Simulate.jl.
This is probably because one of the concentrations Cseₙ, Ce or (cs_max .- Cseₙ) is going negative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions