How to implement above two formulas using field calculator in maxwell 2D?