Skip to content
Snippets Groups Projects
Commit 65a8b62b authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Improved intergral rule message.

parent 09820ea8
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,12 @@ def solve_indef(root, args):
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):
......@@ -100,8 +105,8 @@ def integrate_variable_root(root, args):
return solve_integral(root, L(1) / (n + 1) * x ** (n + 1))
MESSAGES[integrate_variable_root] = \
_('Apply standard integral int(x ^ n) = x ^ (n + 1) / (n + 1) + c.')
MESSAGES[integrate_variable_root] = _('Apply standard integral ' \
'int(x ^ n) = 1 / (n + 1) * x ^ (n + 1) + c.')
def integrate_variable_exponent(root, args):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment