### part 4

#### ba_printf

```include bigatom.e
namespace bigatom
export procedure ba_printf(integer file, sequence fmt, bigatom N)
```

Escribe la representaci?n con formato de un bigatom en un archivo (1 = STDOUT, 2 = STDERR)

Enter the representation format of a file bigatom - (1 = STDOUT, 2 = STDERR)

## OPERACIONES ARITM?TICAS // ARITHMETIC OPERATIONS

```include bigatom.e
namespace bigatom
export function ba_add(object A, object B)
```

Devuelve un bigatom con el resultado de la suma de dos n?meros.

Returns a bigatom with the result of the sum of two numbers.

Supports Atoms, bigatoms and representation of numbers in a string

#### ba_sub

```include bigatom.e
namespace bigatom
export function ba_sub(object A, object B)
```

Devuelve un bigatom con el resultado de la resta de dos n?meros.

Returns a bigatom with the result of the subtraction of two numbers.

Supports Atoms, bigatoms and representation of numbers in a string

#### ba_multiply

```include bigatom.e
namespace bigatom
export function ba_multiply(object A, object B, integer round = 0)
```

Devuelve un bigatom con el resultado de la multiplicaci?n de dos n?meros.

Returns a bigatom with the result of multiplying two numbers.

Supports Atoms, bigatoms and representation of numbers in a string

#### ba_idivide

```include bigatom.e
namespace bigatom
export function ba_idivide(object A, object B)
```

Devuelve el resultado de la divisi?n entera de dos n?meros.

los n?meros son truncados antes de hacer la divisi?n

Returns the result of integer division of two numbers.

Supports Atoms, bigatoms and representation of numbers in a string

The numbers are truncated before making division

#### ba_divide

```include bigatom.e
namespace bigatom
export function ba_divide(object A, object B, integer round = 0)
```

Devuelve un bigatom con el resultado de la divisi?n de dos n?meros.

Returns a bigatom with the result of the division of two numbers.

Supports Atoms, bigatoms and representation of numbers in a string

## RESTOS, REDONDEOS, VARIOS // REMAINS, ROUNDING, MISCELLANEOUS

#### ba_remainder

```include bigatom.e
namespace bigatom
export function ba_remainder(object A, object B)
```

Devuelve un bigatom con el resto de la divisi?n de dos n?meros.

Returns a bigatom with the rest of the division of two numbers.

Supports Atoms, bigatoms or strings that represent numbers

#### ba_round

```include bigatom.e
namespace bigatom
export function ba_round(object N, atom precision = 1, integer mode = 0)
```

mi funci?n de redondeo adaptada a bigatom redondea igual lo n?meros negativos que los positivos

```   -0.5 --> -1 en lugar de -0.5 --> 0
```

My rounding function adapted to bigatom

Rounded numbers matter what negative than positive

```-0.5 -> -1 Instead of -0.5 -> 0
```

#### ba_abs

```include bigatom.e
namespace bigatom
export function ba_abs(bigatom N)
```

devuelve el valor absoluto de un bigatom

returns the absolute value of a bigatom

#### ba_trunc

```include bigatom.e
namespace bigatom
export function ba_trunc(bigatom N)
```

devuelve la parte entera de un bigatom

returns the integer part of a bigatom

#### ba_frac

```include bigatom.e
namespace bigatom
export function ba_frac(bigatom N)
```

devuelve la parte decimal de un bigatom

returns the fractional part of a bigatom

#### ba_floor

```include bigatom.e
namespace bigatom
export function ba_floor(bigatom N)
```

redondea al entero igual o el inmediato menor

rounded to integer equal to or less immediate

#### ba_ceil

```include bigatom.e
namespace bigatom
export function ba_ceil(bigatom N)
```

redondea al entero igual o el inmediato mayor

```(ceil(x) = -floor(-x) )
```

rounded to integer equal to or greater immediate

```(Ceil (x) = -floor (-x))
```

## FUNCIONES EXPONENCIALES Y LOGAR?TMICAS // Exponential and Logarithmic Functions

#### override function log(atom x)

```include bigatom.e
namespace bigatom
override function log(atom x)
```

adaptada de bigfixedmath.e (Lucius L. Hilley III) del Archivo de Euphoria (m?s precisa que la interna de euphoria y la que mejor ha ido con bigatom)

Adapted from bigfixedmath.e (Lucius L. Hilley III) Euphoria Archive

(More accurate than the internal of euphoria and it went better with bigatom)

#### logb

```include bigatom.e
namespace bigatom
export function logb(atom x, integer base = 10)
```

#### override function exp(atom x)

```include bigatom.e
namespace bigatom
override function exp(atom x)
```

c?lculo del n?mero de Euler (e) y sus potencias

```e = 2.718281828459045235360287471352662497757247093699959574
9669676277240766303535475945713821785251664274274663919...
```

calculating the number of Euler (e) and their powers

``` e = 2.718281828459045235360287471352662497757247093699959574
9669676277240766303535475945713821785251664274274663919...
```

part 5