I need a maths script developed. Make responsive PHP please.
Basically the script will ask for 2 parameters. I'll enter in text box
R and F
e.g R = 2 and F = 1
Then press RUN button to run the script.
The output will show all permutations of R and F
It will also assign a value to each which we will call the k value.
To calculate the k value we need to apply rule.
Suppose we have a Random Variable x
We apply 2 rules or functions to x. R and F
R(x) = (3x+1) / 2
F(x) = x/2
e.g suppose R = 2 and F = 1
then the PERMUATATIONS for the COMPOSITION are
RRF maps from
x to >> (3x+1)/2 >>( 3((3x+1)/2)+1)/2 which equals (9x + 5 )/ 4 then finally we divide by 2 for F since F(x) = x/2
so final result is (9x + 5) / 8
write in form (ax+k) / b
hence k = 5
Start from left if we have R we apply map 3x + 1 / 2
If we see F we apply map x / 2
We do this for each permutation and we get an answer of form ax + k / cwe have two columns the permutation and k value
This is version 1. We will do other versions in successful completion of this