Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #31756: regression: conversion of Mathematica's Sqrt to Sage fails
This works with Sage 9.2, but fails with 9.3.rc4: {{{ sage: mathematica('Sqrt[x]').sage() Sqrt(x) }}} The result is an uppercase symbolic function, but should be the lowercase function `sqrt` in Sage. A doctest in interfaces/mathematica.py now fails: {{{ File "src/sage/interfaces/mathematica.py", line 776, in sage.interfaces.mathematica.MathematicaElement._sage_ Failed example: m.sage() # optional - mathematica Expected: (cos(1/x) - 1)^2*sin(sqrt(-x^2 + 1)) Got: (cos(1/x) - 1)^2*sin(Sqrt(-x^2 + 1)) }}} This is also reproducible with `mathematica_free`, see [https://groups.google.com/g/sage-release/c/rjM44KX8pbc/m/8xYVp77iBgAJ this post on sage-release]. This also affects the Gamma function: {{{ File "src/sage/functions/gamma.py", line 731, in sage.functions.gamma._mathematica_gamma Failed example: gamma(4/3)._mathematica_().sage() # indirect doctest, optional - mathematica Expected: gamma(4/3) Got: Gamma(4/3) }}} URL: https://trac.sagemath.org/31756 Reported by: gh-mwageringel Ticket author(s): Markus Wageringel Reviewer(s): Emmanuel Charpentier
- Loading branch information