Click here to Skip to main content
15,893,814 members
Articles / High Performance Computing / Vectorization

Bird Programming Language: Part 1

Rate me:
Please Sign up or sign in to vote.
4.92/5 (129 votes)
1 Jan 2013GPL312 min read 383.2K   2.7K   153  
A new general purpose language that aims to be fast, high level and simple to use.
#define E 2.7182818284590451d

double Math_ArcSine(double x)
	return 2 * atan(x / (1 + sqrt(1 - x * x)))
	'return atan(x / sqrt(-x * x + 1))

double Math_ArcCosine(double x)
	return 2 * atan(sqrt(1 - x * x) / (1 + x))

double Math_SineHyper(double x)
	x = x % (2 * pi)
	return (exp(x) - exp(-x)) / 2
	
double Math_ConsineHyper(double x)
	x = x % (2 * pi)
	return (exp(x) + exp(-x)) / 2
	
double Math_TanHyper(double x)
	x = x % (2 * pi)
	var exp2x = exp(2 * x)
	return (exp2x - 1) / (exp2x + 1)

bool Math_NaN(double x)
	return x == 0d / 0d

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Software Developer
Hungary Hungary
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions