@@ -45,28 +45,28 @@ inline T ApproximateWithValueForSymbol(const Poincare::Expression e, const char
4545}
4646
4747template <class T >
48- inline T ApproximateToScalar (const char * text, Poincare::Context & context) {
48+ inline T ApproximateToScalar (const char * text, Poincare::Context & context, bool symbolicComputation = true ) {
4949 Poincare::Preferences * preferences = Poincare::Preferences::sharedPreferences ();
5050 Poincare::Preferences::ComplexFormat complexFormat = Poincare::Expression::UpdatedComplexFormatWithTextInput (preferences->complexFormat (), text);
51- return Poincare::Expression::ApproximateToScalar<T>(text, context, complexFormat, preferences->angleUnit ());
51+ return Poincare::Expression::ApproximateToScalar<T>(text, context, complexFormat, preferences->angleUnit (), symbolicComputation );
5252}
5353
54- inline Poincare::Expression ParseAndSimplify (const char * text, Poincare::Context & context) {
54+ inline Poincare::Expression ParseAndSimplify (const char * text, Poincare::Context & context, bool symbolicComputation = true ) {
5555 Poincare::Preferences * preferences = Poincare::Preferences::sharedPreferences ();
5656 Poincare::Preferences::ComplexFormat complexFormat = Poincare::Expression::UpdatedComplexFormatWithTextInput (preferences->complexFormat (), text);
57- return Poincare::Expression::ParseAndSimplify (text, context, complexFormat, preferences->angleUnit ());
57+ return Poincare::Expression::ParseAndSimplify (text, context, complexFormat, preferences->angleUnit (), symbolicComputation );
5858}
5959
60- inline void Simplify (Poincare::Expression * e, Poincare::Context & context) {
60+ inline void Simplify (Poincare::Expression * e, Poincare::Context & context, bool symbolicComputation = true ) {
6161 Poincare::Preferences * preferences = Poincare::Preferences::sharedPreferences ();
6262 Poincare::Preferences::ComplexFormat complexFormat = Poincare::Expression::UpdatedComplexFormatWithExpressionInput (preferences->complexFormat (), *e, context);
63- *e = e->simplify (context, complexFormat, preferences->angleUnit ());
63+ *e = e->simplify (context, complexFormat, preferences->angleUnit (), symbolicComputation );
6464}
6565
66- inline void ParseAndSimplifyAndApproximate (const char * text, Poincare::Expression * simplifiedExpression, Poincare::Expression * approximateExpression, Poincare::Context & context) {
66+ inline void ParseAndSimplifyAndApproximate (const char * text, Poincare::Expression * simplifiedExpression, Poincare::Expression * approximateExpression, Poincare::Context & context, bool symbolicComputation = true ) {
6767 Poincare::Preferences * preferences = Poincare::Preferences::sharedPreferences ();
6868 Poincare::Preferences::ComplexFormat complexFormat = Poincare::Expression::UpdatedComplexFormatWithTextInput (preferences->complexFormat (), text);
69- Poincare::Expression::ParseAndSimplifyAndApproximate (text, simplifiedExpression, approximateExpression, context, complexFormat, preferences->angleUnit ());
69+ Poincare::Expression::ParseAndSimplifyAndApproximate (text, simplifiedExpression, approximateExpression, context, complexFormat, preferences->angleUnit (), symbolicComputation );
7070}
7171
7272inline typename Poincare::Expression::Coordinate2D NextMinimum (const Poincare::Expression e, const char * symbol, double start, double step, double max, Poincare::Context & context) {
0 commit comments