utils

Module:

Provides some utilities used across the ui.

utils.backward(expr, force=False)
Oposite to forward.
utils.forward(expr, force=False)
Replaces all variables (and definitions) in expr by their forwarded (implicite) forms. e.g.: vx*vy -> v_vx*v_vy Actually, the only difference is in names of the functions. The names are, however, used by the translator.
utils.split_derivatives(expr, test_function)
Splits expr into an array whose first component are terms which are multiplied by test_function, second resp. third component are terms multiplicated by derivative of test_function with respect to x resp. y

Previous topic

core

Next topic

translator

This Page