Menu

CrossProductEquation

Nicolas Hainaux

This class was created to manage specifically Equations like x / a = b / d, or a / x = b / d etc.
CrossProductEquation.solve_next_step() just creates the next step Equation, using Table.cross_product().

Possible args for __init__():

  • CrossProductEquation
  • (Quotient, Quotient)
  • (num1, num2, deno1, deno2)

where Quotients and num* and deno* are Calculables.
Only one literal object is expected to be among the Quotients, num* and deno*.

Fields:

  • variable_obj: (read-only) access to the object containing the variable (it can be cos(alpha), so a Function and not only a literal Item)
  • variable_position: (read-only) indicates the position of the variable

Variable positions are coded this way:

0: x a     1: a x     2: a b    3: a b
   b c        b c        c x       x c

Debugging info: no dbg_str() method, so far

Check CrossProductEquation's complete doc

Back


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.