Download 33.py from TestCaseGeneration/NumFEM_Eval: direct link, hf CLI and curl.
- Browser
- Download file 263 Bytes
-
https://huggingface.co/datasets/TestCaseGeneration/NumFEM_Eval/resolve/main/33.py
- Command line
-
hf download hf://datasets/TestCaseGeneration/NumFEM_Eval/33.py
-
curl -L -o 33.py https://huggingface.co/datasets/TestCaseGeneration/NumFEM_Eval/resolve/main/33.py
263 Bytes
| from numpy import empty, ndarray | |
| def get_shape_line2(xi: ndarray) -> tuple[ndarray, ndarray]: | |
| N = empty(2) | |
| dNdxi = empty(shape=(1, 2)) | |
| N[0] = 0.5 * (1.0 - xi) | |
| N[1] = 0.5 * (1.0 + xi) | |
| dNdxi[0, 0] = -0.5 | |
| dNdxi[0, 1] = 0.5 | |
| return N, dNdxi |