Symfem should be able to provide arbitrary order basis functions.
For your test case, you are using Lagrange 1 and 2, which you can find at
Symfem should be able to provide arbitrary order basis functions.
For your test case, you are using Lagrange 1 and 2, which you can find at