Skip to content

3oFiz4/2-Variables-Chaotic-Number-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

CIFRE (Chaotic Inverse Fractional Reverse Exponential)

This is a random code I made in the middle 10 PM to be able to generate a random chaotic number between two variables. This code has no purpose. It my daily way to assert intellectual quirk over nobody. :D

It is called, CIFRE (Chaotic Inverse Fractional Reverse Exponential) im too creative with the name

Can be represented as:
$\zeta(a,b) = \sum_{i=1}^{n} \left(\frac{a_{2(i-1)}}{b_{2(i-1)}}\right)^{-\frac{b}{a}}, \quad b_0 = \left(\frac{a}{b}\right)^{\frac{b}{a}}, \quad a_0 = b_0^{-1}$

The whole process of the algorithm can be expressed such that:
$$c = a \times b $$
$$T_0 = 0$$
$$b_2 = \left(\frac{a}{b}\right)^{\frac{b}{a}}$$
$$a_2 = \frac{1}{b_2}$$
$$T_1 = T_0 + a_2$$

$$\textbf{Iterative Process} (\text{for i} \geq 2):$$ $$b_{2i} = \left(\frac{a_{2(i-1)}}{b_{2(i-1)}}\right)^{\frac{b}{a}}$$ $$a_{2i}= \frac{1}{b_{2i}}$$ $$T_i = T_{i-1} + a_{2i}$$

$$\text{Termination Conditions:}$$ $$\text{If } T > c \text{ and } \text{round}(T) = c: $$ $$\quad d = \text{first three decimal digits of } T $$ $$\quad \text{If } d \neq 0: T = \frac{T}{d} $$ $$\quad \text{Return } T $$ $$\text{If } i > \text{max iterations}: $$ $$\quad \text{Return } T $$ $$\text{Continue while } T \leq c$$