cutcutcodec.core.generation.video.fractal.geometry.deduce_all_bounds
- cutcutcodec.core.generation.video.fractal.geometry.deduce_all_bounds(**bounds: dict[str, Basic]) dict[str, Basic][source]
Solve the system for extracting the values of the i, j bounds.
Parameters
- **boundsdict[str, sympy.code.basic.Basic]
The values of the given vars. The considerated keys are the keys presents in the
SYMBOLSdict.
Returns
- all_boundsdict[str, sympy.code.basic.Basic]
The expressions associated to all the values of
SYMBOLSkeys.
Raises
- ValueError
If input is not valid or if the linear system is inconsistent.
Examples
>>> from sympy.core.symbol import Symbol >>> from sympy.core.sympify import sympify >>> from cutcutcodec.core.generation.video.fractal.geometry import deduce_all_bounds >>> solutions = deduce_all_bounds( ... x_center=Symbol("t", real=True, positive=True)/2, ... y_center=sympify(1), ... x_size=sympify(2), ... y_size=1 + Symbol("t", real=True, positive=True)**2, ... ) >>> solutions["i_min"] t**2/2 + 3/2 >>> solutions["i_max"] 1/2 - t**2/2 >>> solutions["j_min"] t/2 - 1 >>> solutions["j_max"] t/2 + 1 >>>