React components for interactive math ↦
Very cool! Here’s the code for plotting a simple sin curve:
import { Mafs, CartesianCoordinates, FunctionGraph } from "mafs"
function HelloFx() {
return (
<Mafs>
<CartesianCoordinates subdivisions={4} />
<FunctionGraph.OfX y={(x) => Math.sin(x)} />
</Mafs>
)
}
Discussion
Sign in or Join to comment or subscribe