====== ExpandNumerator ====== ---- ====Description==== * ''ExpandNumerator'' expands out products and powers that appear in the numerator of expressions. * ''ExpandNumerator[transformations]'' additionally applies transformations at each level of expand procedure. * ''ExpandNumerator'' applies only to the top level in expressions. ====Examples==== ---- Expand the numerator of a fraction: println ExpandNumerator >> '(x - 1) * (x - 2)/((x - 3) * (x - 4))'.t > (x **2 -3*x + 2)/((x - 3) * (x - 4)) ---- Expand the numerator in each term: println ExpandNumerator >> '(1 + x)/x + (2 + x)**2/x + (3 + x)**3/x'.t > (1 + x)/x + (4 + 4*x + x**2)/x + (27 + 27*x + 9*x**2 + x**3)/x ---- ====Details==== ''ExpandNumerator[transformations]'' additionally applies transformations at each level of expand procedure: def t = '((k_a - p_a)*(k^a + p^a))/(a + b)'.t println ExpandNumerator['k_a*k^a = 0'.t] >> t > -(p_a*p^a)/(a + b) For more examples see [[documentation:ref:expand#details|Expand]]. ====See also==== * Related guides: [[documentation:guide:applying_and_manipulating_transformations]], [[documentation:guide:list_of_transformations]] * Related transformations: [[documentation:ref:expand]], [[documentation:ref:expanddenominator]], [[documentation:ref:expandall]] * JavaDocs: [[http://api.redberry.cc/redberry/1.1.9/java-api/cc/redberry/core/transformations/expand/ExpandNumeratorTransformation.html|ExpandNumeratorTransformation]] * Source code: [[https://bitbucket.org/redberry/redberry/src/tip/core/src/main/java/cc/redberry/core/transformations/expand/ExpandNumeratorTransformation.java|ExpandNumeratorTransformation.java]]