Here is an example code to graph the function f(x) = -(x1/2) - (3*x2/2) using Three.js library, which is a popular WebGL/javascript library that provides an easy way to create and display 3D content on the web:
index.tsx1190 chars35 lines
This should create a 3D mesh that represents the surface of the function f(x) = -(x1/2) - (3*x2/2). You may need to adjust the camera position, mesh properties and other settings to get the desired visualization.
gistlibby LogSnag