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

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

@glenfletcher

Description

@glenfletcher

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)

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions