BrushCue Example: Pythagorean Theorem¶
You can use this tool online at https://www.brushcue.com/tools/pythagorean-theorem
In [ ]:
!pip install brushcue
In [1]:
import brushcue as bc
a = 3.0
b = 4.0
graph = bc.Float.pow((bc.Float.pow(a, 2.0) + bc.Float.pow(b, 2.0)), 0.5)
ctx = bc.Context()
print(graph.execute(ctx))
5.0
[wgpu] using backend Metal — adapter 'Apple M5' (IntegratedGpu), driver ''