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