Download 17.py from TestCaseGeneration/NumFEM_Eval: direct link, hf CLI and curl.
- Browser
- Download file 118 Bytes
-
https://huggingface.co/datasets/TestCaseGeneration/NumFEM_Eval/resolve/main/17.py
- Command line
-
hf download hf://datasets/TestCaseGeneration/NumFEM_Eval/17.py
-
curl -L -o 17.py https://huggingface.co/datasets/TestCaseGeneration/NumFEM_Eval/resolve/main/17.py
118 Bytes
| def quadratic_bezier_curve(t, p0, p1, p2): | |
| return (1.0 - t) ** 2.0 * p0 + 2.0 * (1.0 - t) * t * p1 + t ** 2.0 * p2 |