peterdsharpe / AeroSandbox

Aircraft design optimization made fast through modern automatic differentiation. Composable analysis tools for aerodynamics, propulsion, structures, trajectory design, and much more.
https://peterdsharpe.github.io/AeroSandbox/
MIT License
687 stars 111 forks source link

Fixed np.interp for symbolic xp and fp #97

Closed cdhainaut closed 11 months ago

cdhainaut commented 11 months ago

Implemented a solution to handle linear interpolation when "xp" and "fp" are symbolic variables/expressions. Thanks to Joris Gillis for this solution. Extrapolation seems to have a different behaviour though

peterdsharpe commented 11 months ago

This looks great - nice work @carlitador !