Documentation
Getting Started
New Features
Component Guide
Programming
    Language Guide
    Language Ref.
    Component Ref.
    Class Library
       Library Files
       Std Library
       Ses Library
       Component Library
       Outline Library
       HTML Extensions
       Date/Time Library
       Math Library
    User Components
    Tryout Form
    Tutorial
    heitml 1
User Guide
Registration
Frame
    

Math Library

You need to insert

< include 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 as of today (), 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:

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

Example:

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

Example:

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

Example:

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

Example:

heitml 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 heitml
© 1996-2008 H.E.I. All Rights Reserved