common.bi

Summary
common.bi
LicenseCopyright © 2007-2011, FreeBASIC Extended Library Development Group
global
Functions
shl64The FreeBASIC compiler does not currently support bit shifting with 64 bit datatypes.
shr64The FreeBASIC compiler does not currently support bit shifting with 64 bit datatypes.
ext.mathContains mathematical constants, functions and types
Constants and Macros
FBEXT_EPSILON
FBEXT_FLOAT_EQUALCompares two floating-point values for equality.
FBEXT_FLOAT_NOTEQUALCompares two floating-point values for inequality.
pi
inv_pi
pi2
pi_2
pi_180
inv_pi_180
inv_sqr_2pi
three_div_pi2
euler
arctan_1div2The arc-tangent of 1 / 2
berstein
cos1cosine(1)
cube_root_3
inv_log21 / log(2)
e
Y
feigenbaum_reduction
feigenbaum_bifurcation
fransen_robinson
gamma
gauss_kuzmin_wirsing
golomb
khinchin
lehmer
FBEXT_ANGLE_TO_RADIANConverts an Angle to Radians.
FBEXT_RADIAN_TO_ANGLEConverts a Radian to an Angle.

License

Copyright © 2007-2011, FreeBASIC Extended Library Development Group

Distributed under the FreeBASIC Extended Library Group license.  See accompanying file LICENSE.txt or copy at http://code.google.com/p/fb-extended-lib/wiki/License

global

Summary
Functions
shl64The FreeBASIC compiler does not currently support bit shifting with 64 bit datatypes.
shr64The FreeBASIC compiler does not currently support bit shifting with 64 bit datatypes.

Functions

shl64

declare function shl64(byval ovar as ulongint,
byval sbits as integer) as ulongint

The FreeBASIC compiler does not currently support bit shifting with 64 bit datatypes.  This function provides that functionality for shifting left.

shr64

declare function shr64(byval ovar as ulongint,
byval sbits as integer) as ulongint

The FreeBASIC compiler does not currently support bit shifting with 64 bit datatypes.  This function provides that functionality for shifting right.

ext.math

Contains mathematical constants, functions and types

Constants and Macros

FBEXT_EPSILON

FBEXT_FLOAT_EQUAL

Compares two floating-point values for equality.

FBEXT_FLOAT_NOTEQUAL

# define FBEXT_FLOAT_NOTEQUAL(a,
b) (not FBEXT_FLOAT_EQUAL(a, b))

Compares two floating-point values for inequality.

pi

const pi as double = 3.1415926535897932

inv_pi

const inv_pi as double = 1 / pi

pi2

const pi2 as double = pi * 2

pi_2

const pi_2 as double = pi / 2

pi_180

const pi_180 as double = pi / 180.0

inv_pi_180

const inv_pi_180 as double = 1 / pi_180

inv_sqr_2pi

const inv_sqr_2pi as double = 0.39894228040143267

three_div_pi2

const three_div_pi2 as double = 0.303963550927013

euler

const euler as double = 0.333177923807718674318

arctan_1div2

const arctan_1div2 as double = 0.4636476090008061

The arc-tangent of 1 / 2

berstein

const berstein as double = 0.2801694990238691330364

cos1

const cos1 as double = 0.5403023058681397174

cosine(1)

cube_root_3

const cube_root_3 as double = 1.442249570307408382321

inv_log2

const inv_log2 as double = 1.442695040888963

1 / log(2)

e

const e as double = 2.718281828459045

Y

const Y as double = 0.577215664901532

feigenbaum_reduction

const feigenbaum_reduction as double = 2.50290787509589282228

feigenbaum_bifurcation

const feigenbaum_bifurcation as double = 4.66920160910299067185

fransen_robinson

const fransen_robinson as double = 2.8077702420285

gamma

const gamma as double = 0.577215664901532860606

gauss_kuzmin_wirsing

const gauss_kuzmin_wirsing as double = 0.303663002898732

golomb

const golomb as double = 0.6243299885435508

khinchin

const khinchin as double = 2.685452001065306

lehmer

const lehmer as double = .5926327182016361971040

FBEXT_ANGLE_TO_RADIAN

#define FBEXT_ANGLE_TO_RADIAN(x) (x) * pi_180

Converts an Angle to Radians.

FBEXT_RADIAN_TO_ANGLE

#define FBEXT_RADIAN_TO_ANGLE(x) (x) * inv_pi_180

Converts a Radian to an Angle.

declare function shl64(byval ovar as ulongint,
byval sbits as integer) as ulongint
The FreeBASIC compiler does not currently support bit shifting with 64 bit datatypes.
declare function shr64(byval ovar as ulongint,
byval sbits as integer) as ulongint
The FreeBASIC compiler does not currently support bit shifting with 64 bit datatypes.
# define FBEXT_FLOAT_NOTEQUAL(a,
b) (not FBEXT_FLOAT_EQUAL(a, b))
Compares two floating-point values for inequality.
const pi as double = 3.1415926535897932
const inv_pi as double = 1 / pi
const pi2 as double = pi * 2
const pi_2 as double = pi / 2
const pi_180 as double = pi / 180.0
const inv_pi_180 as double = 1 / pi_180
const inv_sqr_2pi as double = 0.39894228040143267
const three_div_pi2 as double = 0.303963550927013
const euler as double = 0.333177923807718674318
const arctan_1div2 as double = 0.4636476090008061
The arc-tangent of 1 / 2
const berstein as double = 0.2801694990238691330364
const cos1 as double = 0.5403023058681397174
cosine(1)
const cube_root_3 as double = 1.442249570307408382321
const inv_log2 as double = 1.442695040888963
1 / log(2)
const e as double = 2.718281828459045
const Y as double = 0.577215664901532
const feigenbaum_reduction as double = 2.50290787509589282228
const feigenbaum_bifurcation as double = 4.66920160910299067185
const fransen_robinson as double = 2.8077702420285
const gamma as double = 0.577215664901532860606
const gauss_kuzmin_wirsing as double = 0.303663002898732
const golomb as double = 0.6243299885435508
const khinchin as double = 2.685452001065306
const lehmer as double = .5926327182016361971040
#define FBEXT_ANGLE_TO_RADIAN(x) (x) * pi_180
Converts an Angle to Radians.
#define FBEXT_RADIAN_TO_ANGLE(x) (x) * inv_pi_180
Converts a Radian to an Angle.