Blog Options
Archive
<< April 2024 >>-
Wednesday 24
- Expanding the StellarDS.io tooling -
Monday 22
- Easy Guide to Building a Pexels Gallery App with TMS WEB Core -
Wednesday 17
- New free component for sophisticated file uploads with TMS WEB Core -
Tuesday 16
- Closing the gap with TMS FNC UI Pack new additions -
Thursday 11
- Unveiling the Latest Enhancements in TMS VCL UI Pack -
Friday 5
- TMS components and Delphi and C++Builder 12.1 -
Wednesday 3
- Customizing the login page of your application using TMS Sphinx
- A Python library for using StellarDS.io effortlessly
- Introducing: How it Works with Holger - Building a Pexels gallery app with TMS WEB Core video series
- TMS FNC Cloud Pack with StellarDS.io backend: unparalleled productivity in VCL & FMX
Authors
- Bernard Roussely (1)
- Wagner Landgraf (82)
- Roman Yankovsky (2)
- Bart Holvoet (27)
- Aaron Decramer (18)
- Pieter Scheldeman (99)
- Nancy Lescouhier (32)
- Adrian Gallero (33)
- Bruno Fierens (404)
- Marcos Douglas B. Santos (5)
- Wagner R. Landgraf (1)
- Bradley Velghe (16)
- Bernard (2)
- Andrew Simard (86)
- Holger Flick (15)
- Gjalt Vanhouwaert (30)
- Tunde Keller (22)
- Masiha Zemarai (119)
Blog
All Blog Posts | Next Post | Previous PostNew features in TMS Analytics & Physics 2.8
Bookmarks:Tuesday, April 16, 2019
The previous version 2.7 of TMS Analytics & Physics library introduced the capability of converting formula and units of measurements to the TeX format. The TeX representation allows then drawing formula in natural math form, using some external tools, such as MathJax.The new version 2.8 provides some improvements of formula conversion and includes new capabilities. The main new feature is converting standard functions to math operators. For example, exponent function exp(x) can be converted to the form of power operation as ex. The following standard functions supported: sqrt, root, pow, abs and exp. The option of converting functions to the operation format can be on or off, allowing different representation of the formula.
Let us consider the following formula, containing several standard functions sqrt(x^2-1)+root{3*n}(x/2)*abs(x-A)-exp(x^2)*pow{n/2}(x+1). This formula can be converted to the TeX format in two different ways: with or without converting functions to the operation format. Here is the formula drawing for these two cases:
- without function conversion:
- with function conversion:
Another improvement is new simplifications of math expressions. Simplifying math expressions allows better representation of math data. Simplified formula is more suitable for reading and perception. For example, the expression simplification implicitly used after symbolic derivative calculation, because this can significantly reduce the result. For example, let us consider the following formula:
Evaluating symbolic derivatives for the expression, we can get two results. The first result evaluated using formal recursive chain algorithm without simplifications:
Next formula is the same expression after simplification:
The last version 2.8 of the library supports the following simplification algorithms:
- Expanding nested sum, product and power expressions
- Collecting constant addends in sum expressions
- Reducing addends in sum expressions
- Combining constant multipliers in product expressions
- Reducing multipliers in fraction expressions
- Combining power expressions with multipliers
- Simplifying integer square roots and modulus of negative data
The expression simplification can be used explicitly in the code, calling the Simplify method of the TTranslator class. Here is an example of the formula simplification demonstrating the algorithms: Initial formula:
Simplified formula:
TMS Analytics & Physics 2.8 is already available.
Masiha Zemarai
Bookmarks:
This blog post has not received any comments yet.
All Blog Posts | Next Post | Previous Post