For example, I would like to do some manipulations and methods using a Java class based on Math.
How can I access this?
You can call any open and static method of exposed beans for Freemarker. See a similar question here . Also see the documentation.