App Inventor Extensions


Math Extension

See the App Inventor Extensions document about how to use an App Inventor Extension.

For questions about this extension or bug reports please start a new thread in the App Inventor community. Thank you.

For feature requests please contact me by email. To be a sponsor of a new method already is possible starting from only 10 USD! With your contribution you will help the complete App Inventor community. Thank you.

Jul 19h, 2017: Version 1: initial release
Note: using the extension version 1 together with another Pura Vida Apps extension built between July 1st and July 20th might result in error message Unable to find TaifunTools component while opening a project. Use extension version 1a instead.

Jul 22h, 2017: Version 1a: new build using extension-specific directory in aix file

Description

Extension to parse mathematical expressions.
Required permission: none
This extension uses the mXparser library Version 4.1. Thank you Mariusz Gromada for the mXparser library.
The functionality of this library is overwhelming. See the details of the mXparser built-in math collection here...

Main functionalities

Few examples of string equivalent to the math formula notation

screenshot taken from mathparser.org.

Properties


Display the license of the mXparser library.

Methods


Parse a mathematical expression and return the result.

A very simple example



See also the video by azaotl Making a calculator in less than an hour using Taifun's Math Extension. Thank you azaotl!

Example Use


For questions about App Inventor,
please ask in the App Inventor community.Thank you.

Terms and Conditions

Questions and Answers

Q1: How do you access internal functions like e.getComputingTime()?
A: That's unfortunately not possible. You "only" can use the functionality of the built-in math collection.

Download


Developing and maintaining snippets, tutorials and extensions for App Inventor takes a lot of time.
I hope it saved some of your time. If yes, then you might consider to donate a small amount!

Donation amount:

or donate some mBTC to Bitcoin Address:
1Jd8kXLHu2Vkuhi15TWHiQm4uE9AGPYxi8
Bitcoin

Thank you! Taifun
 

Download TaifunMath extension (aix file)
Download Math Test project (aia file)

Back to top of page ...

Creative Commons License
This work by Pura Vida Apps is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License
with attribution (name=Pura Vida Apps and link to the source site) required.


Home | Snippets | Tutorials | Extensions | Links | Search | Privacy Policy | Contact