sympy function definition 1

sympy function definition

from sympy import Function, Symbol
x = Symbol('x')
f = Function('f')
g = Function('g')(x)

Here is what the above code is Doing:
1. We import the sympy module.
2. We create a symbol x.
3. We create a function f.
4. We create a function g that depends on x.

Similar Posts