Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

Example 3

Stanislav Mikhel edited this page May 29, 2017 · 1 revision

VPSYS can works as a calculator. It supports calculations with integers, floating point, complex and rational numbers. Integers can be represented in decimal, binary or hexadecimal form (but result is always decimal).

 >> 0b10 + 0xFF + 3
 260

For floating point number can be used dot, 'e' or 'E'.

There are some constants in VPSYS: %i - complex unit, %pi - 3.1415..., %e - Euler's number. Notice that name of constant (and variable) must begin with '%'.

 >> pow(%e, %i*%pi)
 -1.000000-i*0.000000
Clone this wiki locally