moorepants / resonance

Learning Mechanical Vibration Engineering Through Computation
https://moorepants.github.io/resonance
MIT License
47 stars 12 forks source link

Use numpy.vectorize() #154

Open moorepants opened 6 years ago

moorepants commented 6 years ago

We may be able to use numpy.vectorize() so that students only have to make their functions work with floats and don't have to construct them to work with 1D arrays/broadcasting, etc. Forgot that this existed. Might simplify a lot.

moorepants commented 6 years ago

I think that this would incur a speed penalty though.

moorepants commented 4 years ago

This doesn't seem to work because we rely on the functions argument names to stay in tact. vectorize() seems to muck with the argument names.