Next Article in Journal
A Note on Ordering Probability Distributions by Skewness
Previous Article in Journal
Adaptive and Blind Audio Watermarking Algorithm Based on Chaotic Encryption in Hybrid Domain
Article Menu
Issue 7 (July) cover image

Export Article

Open AccessArticle
Symmetry 2018, 10(7), 285; https://doi.org/10.3390/sym10070285

A Step-by-Step Solution Methodology for Mathematical Expressions

1
Department of Computer Engineering, Ataturk University, Erzurum 25240, Turkey
2
Department of Computer Engineering, Karadeniz Technical University, Trabzon 61080, Turkey
*
Author to whom correspondence should be addressed.
Received: 23 May 2018 / Revised: 6 July 2018 / Accepted: 9 July 2018 / Published: 15 July 2018
View Full-Text   |   Download PDF [3209 KB, uploaded 17 July 2018]   |  

Abstract

In this paper, we propose a methodology for the step-by-step solution of problems, which can be incorporated into a computer algebra system. Our main aim is to show all the intermediate evaluation steps of mathematical expressions from the start to the end of the solution. The first stage of the methodology covers the development of a formal grammar that describes the syntax and semantics of mathematical expressions. Using a compiler generation tool, the second stage produces a parser from the grammar description. The parser is used to convert a particular mathematical expression into an Abstract Syntax Tree (AST), which is evaluated in the third stage by traversing al its nodes. After every evaluation of some nodes, which corresponds to an intermediate solution step of the related expression, the resulting AST is transformed into the corresponding mathematical expression and then displayed. Many other algebra-related issues such as simplification, factorization, distribution and substitution can be covered by the solution methodology. We currently focuses on the solutions of various problems associated with the subject of derivative, equations, single variable polynomials, and operations on functions. However, it can easily be extended to cover the other subjects of general mathematics. View Full-Text
Keywords: computer algebra system; step-by-step solution; mathematical expression; simplification; automatic solving; compiler-compiler tools; grammars; AST computer algebra system; step-by-step solution; mathematical expression; simplification; automatic solving; compiler-compiler tools; grammars; AST
Figures

Figure 1

This is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. (CC BY 4.0).
SciFeed

Share & Cite This Article

MDPI and ACS Style

Hosseinpour, S.; Alavi Milani, M.M.R.; Pehlivan, H. A Step-by-Step Solution Methodology for Mathematical Expressions. Symmetry 2018, 10, 285.

Show more citation formats Show less citations formats

Note that from the first issue of 2016, MDPI journals use article numbers instead of page numbers. See further details here.

Related Articles

Article Metrics

Article Access Statistics

1

Comments

[Return to top]
Symmetry EISSN 2073-8994 Published by MDPI AG, Basel, Switzerland RSS E-Mail Table of Contents Alert
Back to Top