FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

oxbits/platonic_solids_faces_function: platonic_solids_faces_function · GitHub

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

platonic_solids_faces_function

platonic solids faces function

b=lambda x:((x/(0**(x**2)+x))*2)**((x-1)**(x/(0**(x**2)+x)))*2+4

map(b, range(5))

Result:

[4, 6, 8, 12, 20]

This groovy little function returns 0 for 0 but 1 for everything else:

x/(0**(x**2)+x)

it provides a way to avoid divide by zero errors among other things.

About

platonic_solids_faces_function

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors


Back | FazBrowse Home | New Git URL