vipsi - the friendly vip script interpreter

Functions

Numeric functions

log

<number> = Numeric functions: log
Numeric functions: loge
Instructions: log
log
( <base>, <number> )

Calculate Flow control: if … then
Flow control: try … then
the
logarithm of <number> to <base> which must be a numeric Glossary: Valuevalue too.

Flow control: if … then
Flow control: try … then
The
Integer numbers: Base 256base must Operators: Bitwise Not "~"
Operators: Boolean Negation "!"
not
be 0 Operators: Boolean Or with Variable "||="
Operators: Bitwise Or with Variable "|="
Operators: Bitwise Or "|"
Operators: Boolean Or "||"
or
Flow control: if … then
Flow control: try … then
the
result will be 'unlimited' Operators: Boolean And with Variable "&&="
Operators: Bitwise And with Variable "&="
Operators: Bitwise And "&"
Operators: Boolean And "&&"
and
Flow control: if … then
Flow control: try … then
the
Glossary: number, num_valnumber must Operators: Bitwise Not "~"
Operators: Boolean Negation "!"
not
be 1 Operators: Boolean Or with Variable "||="
Operators: Bitwise Or with Variable "|="
Operators: Bitwise Or "|"
Operators: Boolean Or "||"
or
Flow control: if … then
Flow control: try … then
the
Flow control: if … then
Flow control: try … then
the
result will be 'NaN'.

e.g.:

vipsi> logn(16,256)  = 2
vipsi> logn(10,999)  = 2.999565488226
vipsi>  
log in the vipsi shell

Numeric functions: log
Numeric functions: loge
Instructions: log
log
is used as an Vipsi command syntax: Instructions
Instructions
Glossary: Instruction
instruction
which prints it's Vipsi command syntax: Arguments
Glossary: Arguments
arguments
to Constants: stderrstderr Operators: Boolean And with Variable "&&="
Operators: Bitwise And with Variable "&="
Operators: Bitwise And "&"
Operators: Boolean And "&&"
and
as a Vipsi command syntax: Functions
Functions
Glossary: Function
function
to calculate Flow control: if … then
Flow control: try … then
the
logarithm of any Glossary: number, num_valnumber to any Integer numbers: Base 256base. Flow control: if … then
Flow control: try … then
The
meaning depends on Flow control: if … then
Flow control: try … then
the
place where Numeric functions: log
Numeric functions: loge
Instructions: log
log
is encountered. Flow control: if … thenIf it occurs Operators: Make Identifier "@"at Flow control: if … then
Flow control: try … then
the
place of an Vipsi command syntax: Instructions
Instructions
Glossary: Instruction
instruction
Flow control: if … then
Flow control: try … then
then
it is Flow control: if … then
Flow control: try … then
the
Vipsi command syntax: Instructions
Instructions
Glossary: Instruction
instruction
Numeric functions: log
Numeric functions: loge
Instructions: log
log
which prints it Vipsi command syntax: Arguments
Glossary: Arguments
arguments
to Constants: stderrstderr. Flow control: if … thenIf it occurs Operators: Make Identifier "@"at Flow control: if … then
Flow control: try … then
the
place of an Vipsi command syntax: Expressions
Glossary: Expression
expression
Flow control: if … then
Flow control: try … then
then
it is Flow control: if … then
Flow control: try … then
the
Vipsi command syntax: Functions
Functions
Glossary: Function
function
Numeric functions: log
Numeric functions: loge
Instructions: log
log
.

Flow control: if … then
Flow control: try … then
The
only place where List functions: thisthis may lead to confusion is Flow control: if … then
Flow control: try … then
the
vipsi shell: Operators: Make Identifier "@"At Flow control: if … then
Flow control: try … then
the
start of Flow control: if … then
Flow control: try … then
the
command line Flow control: if … then
Flow control: try … then
the
parser expects an Vipsi command syntax: Instructions
Instructions
Glossary: Instruction
instruction
. For your convenience it is also possible to just type an Vipsi command syntax: Expressions
Glossary: Expression
expression
Operators: Boolean And with Variable "&&="
Operators: Bitwise And with Variable "&="
Operators: Bitwise And "&"
Operators: Boolean And "&&"
and
Flow control: if … then
Flow control: try … then
the
shell will print Flow control: if … then
Flow control: try … then
the
result. Thus Flow control: if … thenif you just type in

Numeric functions: log
Numeric functions: loge
Instructions: log
log
(2,8)

to see what Flow control: if … then
Flow control: try … then
the
logarithm of 8 to Integer numbers: Base 256base 2 is, Flow control: if … then
Flow control: try … then
then
Flow control: if … then
Flow control: try … then
the
List functions: words
Shell Immediate Commands: words
word
Numeric functions: log
Numeric functions: loge
Instructions: log
log
stands Operators: Make Identifier "@"at Flow control: if … then
Flow control: try … then
the
position of an Vipsi command syntax: Instructions
Instructions
Glossary: Instruction
instruction
Operators: Boolean And with Variable "&&="
Operators: Bitwise And with Variable "&="
Operators: Bitwise And "&"
Operators: Boolean And "&&"
and
should be handled as Flow control: if … then
Flow control: try … then
the
Vipsi command syntax: Instructions
Instructions
Glossary: Instruction
instruction
Numeric functions: log
Numeric functions: loge
Instructions: log
log
.

As of version 0.8.8 Flow control: if … then
Flow control: try … then
the
shell has some automagic intelligence to detect List functions: thisthis. Flow control: if … thenIf a command line starts with log Flow control: if … then
Flow control: try … then
then
Flow control: if … then
Flow control: try … then
the
shell inspects Flow control: if … then
Flow control: try … then
the
Flow control: nextnext token. Flow control: if … thenIf it is an opening Separators: Round brackets "( … )"
Functions with varying return types: bracket expression "()"
parenthesis
( Flow control: if … then
Flow control: try … then
then
Flow control: if … then
Flow control: try … then
the
shell defaults to an Vipsi command syntax: Expressions
Glossary: Expression
expression
Operators: Boolean And with Variable "&&="
Operators: Bitwise And with Variable "&="
Operators: Bitwise And "&"
Operators: Boolean And "&&"
and
Numeric functions: log
Numeric functions: loge
Instructions: log
log
will be handled as Flow control: if … then
Flow control: try … then
the
logarithm Vipsi command syntax: Functions
Functions
Glossary: Function
function
. List functions: thisThis is done by silently putting a Instructions: putput Vipsi command syntax: Instructions
Instructions
Glossary: Instruction
instruction
in front of Numeric functions: log
Numeric functions: loge
Instructions: log
log
Operators: Boolean And with Variable "&&="
Operators: Bitwise And with Variable "&="
Operators: Bitwise And "&"
Operators: Boolean And "&&"
and
Flow control: if … then
Flow control: try … then
the
printed result is Operators: Bitwise Not "~"
Operators: Boolean Negation "!"
not
always identical to what would be printed Flow control: if … thenif it was evaluated as an Vipsi command syntax: Expressions
Glossary: Expression
expression
without glue.

Valid HTML   Valid CSS