Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Support for variable functions, i.e. callbacks #16

Open
glenfletcher opened this issue May 3, 2014 · 0 comments
Open

Support for variable functions, i.e. callbacks #16

glenfletcher opened this issue May 3, 2014 · 0 comments
Assignees
Milestone

Comments

@glenfletcher
Copy link
Owner

Make the following work

from Equation import Expression
import numpy as np
fn = Expression("(y(x+(d/2))-y(x-(d/2)))/d")
y = lambda x: x**2
x = np.linspace(0,2,1000)
d = 0.0005
dy = fn(y,x,d)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant