Menu

Expandable

Nicolas Hainaux
Attachments
dbg_expandable.png (2519 bytes)
memo_expandable.png (2720 bytes)

Expandable are all objects that can be expanded, like: 5(2 + 3x) or -7x(4x - 1) or (2x - 3)(8x + 2) or -(7x - 6)
So they are always a Product of two Exponenteds. One of these Exponenteds at least is a Sum of at least two terms. It might well be that the exponent is assumed to always be Value(1). Maybe make it clear someday...

The binomial like (3x + 2)² are Expandables treated in the BinomialIdentity class

Possible args for __init__() :
(Exponented, Exponented) | (RANDOMLY, <type>)
The usable types when creating a randomly Expandable:</type>

  • monom0_polyn1 will create this kind of objects: 5(3x-2)
  • monom1_polyn1 will create this kind of objects: -5x(2-3x)
  • polyn1_polyn1 will create this kind of objects: (5x+1)(3x-2)
  • minus_polyn1_polyn1 will create: - polyn1_polyn1
  • sign_exp will create ±(±ax²±bx±c) | ±(±bx±c) | ±(±ax²±c) | ±(±ax²±bx)

Options: reversed | randomly_reversed=nb

  • reversed will change the sums' order. This is useless if the sums are the same kind of objects (like (2x+3)(3x-7))
  • randomly_reversed=0.3 will change the sums' order in a ratio of 0.3

Fields :
Nothing specific

Debugging info :

Check Expandable's complete doc

Back to Core Objects


Related

Doc for dev: Core Objects

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.