------------Como usar el modulo parser-------------
-------------How to use parser module--------------


importamos el metodo / import the method
from parser import parse

=============================================
Operaciones soportadas / Supported operations
=============================================
==OPERACIONES BINARIAS / BINARY OPERATIONS==
a + b : Adicion / Addition
	f = parse("1+2")
	print f() ::= 3.0 

	f = parse("1+2+3")
	print f() ::= 6.0 

	f = parse("1+2+(3+4)")
	print f() ::= 10.0 

a - b : Substraccion / Substraction
	f = parse("1-2")
	print f() ::= -1.0 

	f = parse("1-2-3")
	print f() ::= -4.0 

	f = parse("1-2-(3-4)")
	print f() ::= 0.0 

a * b : Multiplicacion / Multiplication
	f = parse("2*5")
	print f() ::= 10.0 

	f = parse("1+2*5-4")
	print f() ::= 7.0 

	f = parse("(1+2)*(5-4)")
	print f() ::= 3.0 

c / b : Division / Division
	f = parse("2/5")
	print f() ::= 0.4 

	f = parse("1+2/5-4")
	print f() ::= -2.6 

	f = parse("(1+2)/(5-4)")
	print f() ::= 3.0 

	f = parse("2*5/7+1")
	print f() ::= 2.42857142857 

a ^ b : Potencias / Power
	f = parse("2^5")
	print f() ::= 32.0 

	f = parse("3^-4")
	print f() ::= 0.0123456790123 

	f = parse("4^2^2")
	print f() ::= 256.0 

	f = parse("4^2^2+9")
	print f() ::= 265.0 

==OPERACIONES UNARIAS / UNARY OPERATIONS==
- a : Negacion / Negation
	f = parse("-1")
	print f() ::= -1.0 

	f = parse("2+-1")
	print f() ::= 1.0 

==CONSTANTES MATEMATICAS / MATHEMATICAL CONSTANTS==
pi    : Constante de Arcquimedes / Archimedes Constant
	f = parse("pi")
	print f() ::= 3.14159265359 

e     : Numero de Euler / Euler's number
	f = parse("e")
	print f() ::= 2.71828182846 

rtwo : Constante de Pitagoras, raiz cuadrada de 2 / Pythagoras constant, sqare root of 2
	f = parse("rtwo")
	print f() ::= 1.41421356237 

phi   : Numero aureo / The golden ratio
	f = parse("phi")
	print f() ::= 1.61803398875 

==FUNCIONES / FUNCTIONS==
cos  : coseno, argumento en radianes / cosine, argument in radians
	f = parse("cos(3)")
	print f() ::= -0.9899924966 

	f = parse("cos(2*pi)")
	print f() ::= 1.0 

	f = parse("cos(pi/2)")
	print f() ::= 6.12323399574e-17 

	f = parse("cos(3*4)")
	print f() ::= 0.843853958732 

sin  : seno, argumento en radianes / sine, argument in radians
	f = parse("sin(3)")
	print f() ::= 0.14112000806 

	f = parse("sin(2*pi)")
	print f() ::= -2.44929359829e-16 

	f = parse("sin(pi/2)")
	print f() ::= 1.0 

	f = parse("sin(3*4)")
	print f() ::= -0.536572918 

tan  : tangente, argumento en radianes / tangent, argument in radians
	f = parse("tan(3)")
	print f() ::= -0.142546543074 

	f = parse("tan(2*pi)")
	print f() ::= -2.44929359829e-16 

	f = parse("tan(pi/2)")
	print f() ::= 1.63312393532e+16 

	f = parse("tan(3*4)")
	print f() ::= -0.635859928662 

exp  : funcion exponencial / exponential function
	f = parse("exp(3)")
	print f() ::= 20.0855369232 

	f = parse("exp-(2*pi)")
	print f() ::= 0.00186744273171 

sqrt : raiz cuadrada / square root
	f = parse("sqrt(3)")
	print f() ::= 1.73205080757 

	f = parse("sqrt(10)")
	print f() ::= 3.16227766017 

	f = parse("sqrt(3^2)")
	print f() ::= 3.0 

ln   : logaritmo natural / natural logarithm
	f = parse("ln(3)")
	print f() ::= 1.09861228867 

	f = parse("ln(10)")
	print f() ::= 2.30258509299 

	f = parse("ln(3^2)")
	print f() ::= 2.19722457734 

	f = parse("ln(0.652)")
	print f() ::= -0.427710717055 

	f = parse("ln(1)")
	print f() ::= 0.0 

abs  : valor absoluto / absolute value
	f = parse("abs(3)")
	print f() ::= 3.0 

	f = parse("abs(-10)")
	print f() ::= 10.0 

	f = parse("abs-(3)")
	print f() ::= 3.0 

==VARIABLES / VARIABLES==
	f = parse("3+x*0.5")
	print f(x=2) ::= 4.0 

	f = parse("sqrt(x^2+y^2)")
	print f(y=8,x=3) ::= 8.54400374532 

	f = parse("gatito*7")
	print f(gatito=0.6) ::= 4.2 

