Skip to main content
Commonmark migration
Source Link

#Mathematica 18

Mathematica 18

f=#+1/2-4#(#-⌊#⌋)& 

Here ⌊...⌋ is the floor function. It uses only rational numbers (not lists, complex numbers, etc)

f[10] f[f[10]] 

21/2

 

-10

f[-5] f[f[-5]] 

-9/2

 

5

#Mathematica 18

f=#+1/2-4#(#-⌊#⌋)& 

Here ⌊...⌋ is the floor function. It uses only rational numbers (not lists, complex numbers, etc)

f[10] f[f[10]] 

21/2

 

-10

f[-5] f[f[-5]] 

-9/2

 

5

Mathematica 18

f=#+1/2-4#(#-⌊#⌋)& 

Here ⌊...⌋ is the floor function. It uses only rational numbers (not lists, complex numbers, etc)

f[10] f[f[10]] 

21/2

-10

f[-5] f[f[-5]] 

-9/2

5

Source Link
ybeltukov
  • 1.9k
  • 11
  • 12

#Mathematica 18

f=#+1/2-4#(#-⌊#⌋)& 

Here ⌊...⌋ is the floor function. It uses only rational numbers (not lists, complex numbers, etc)

f[10] f[f[10]] 

21/2

-10

f[-5] f[f[-5]] 

-9/2

5