79226024

Date: 2024-11-26 09:20:35
Score: 1.5
Natty:
Report link

You can simply use traditional trig functions to create a triangle-wave as a function of x

import math
triangle_function = lambda x: math.asin(math.sin(2*math.pi*x))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: A_Hipposhark