Math Library

You need to insert

< include name="math.hei" />

into the beginning of your page to use the following functions.

The Source Code file math.hei, located in the lib directory, is part of the package you receive when you download heitml.

We only have a few math function yet, but you are free to define the math functions you need. If you are using heitml on UNIX, you can even add built-in math functions through the userfun.c module.

Also, don't forget that there are already quite a number of heitml Built-in Numerical functions to serve your needs, so be sure to review that section of the Language Reference.

Example:

input:resulting output:
<? abs(42)> 42
<? abs(-42)> 42
<? abs(12-42)> 30

Example:

input:resulting output:
<? sqr(5)> 25
<? sqr(sqr(5))> 625

Example:

input:resulting output:
<? cube(3)> 27
<? cube(sqr(2))> 64

Example:

input:resulting output:
<? power(2,16)> 65536
<? power(cube(sqr(2)),4)> 16777216

Example:

input:resulting output:
<? log10(-1) "Nn"> null
<? log10(0) "Nn"> null
<? log10(.001)> -3
<? log10(.1)> -1
<? log10(1)> 0
<? log10(10)> 1
<? log10(50)> 1
<? log10(100)> 2


This page was dynamically generated by the web application development tool RADpage of H.E.I.
© 1996-2017 H.E.I. All Rights Reserved.



Homepage
Intro/Features
Component Guide
Programming
  Language Guide
  Language Ref.
  Component Ref.
  Class Library
    Library Files
    Std Library
    Ses Library
    Component Library
    Layout Library
    Outline Library
    HTML Extensions
    Date/Time Library
    Math Library
  User Components
  Tryout Form
  Tutorial
  New Features
  heitml 1
User Guide
FAQ
Mailinglist
Discussion Group
Services
Pricing/Register
Download
Frame
 
Contact
 
 
 
Search: