Skip to content

Commit

Permalink
Merge pull request #117 from LilithHafner/patch-1
Browse files Browse the repository at this point in the history
Fix language tag and make example pasteable in README.md
  • Loading branch information
ChrisRackauckas authored Sep 12, 2023
2 parents 5f2a4a6 + bdeb864 commit ade792e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@ translate these docs to Python code.
Python does not allow `!` in function names, so this is also [a limitation of pyjulia](https://pyjulia.readthedocs.io/en/latest/limitations.html#mismatch-in-valid-set-of-identifiers)
To use functions which on the Julia side have a `!`, like `step!`, replace `!` by `_b`, for example:

```julia
```py
from diffeqpy import de

def f(u,p,t):
return -u

u0 = 0.5
tspan = (0., 1.)
prob = de.ODEProblem(f, u0, tspan)
Expand Down

0 comments on commit ade792e

Please sign in to comment.