Commit 65a8b62b authored by Taddeus Kroes's avatar Taddeus Kroes

Improved intergral rule message.

parent 09820ea8
...@@ -67,7 +67,12 @@ def solve_indef(root, args): ...@@ -67,7 +67,12 @@ def solve_indef(root, args):
return substitute(Fx, x, b) - substitute(Fx, x, a) return substitute(Fx, x, b) - substitute(Fx, x, a)
MESSAGES[solve_indef] = _('Solve indefinite integral {0} using substitution.') def solve_indef_msg(root, args):
return _('Solve indefinite integral {0} using substitution ' \
'of %s with {0[2]} and {0[1]}.' % find_variable(root[0]))
MESSAGES[solve_indef] = solve_indef_msg
def match_integrate_variable_power(node): def match_integrate_variable_power(node):
...@@ -100,8 +105,8 @@ def integrate_variable_root(root, args): ...@@ -100,8 +105,8 @@ def integrate_variable_root(root, args):
return solve_integral(root, L(1) / (n + 1) * x ** (n + 1)) return solve_integral(root, L(1) / (n + 1) * x ** (n + 1))
MESSAGES[integrate_variable_root] = \ MESSAGES[integrate_variable_root] = _('Apply standard integral ' \
_('Apply standard integral int(x ^ n) = x ^ (n + 1) / (n + 1) + c.') 'int(x ^ n) = 1 / (n + 1) * x ^ (n + 1) + c.')
def integrate_variable_exponent(root, args): def integrate_variable_exponent(root, args):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment