Image not available

1928x1096

image_2024-05-21_....png

๐Ÿงต Untitled Thread

Anonymous No. 16186165

Brainrot victim here.
How do I make a function for a curve like this?

Anonymous No. 16186200

>>16186165
piecewise function
[math] f(x) =\left\{\begin{array}{l} {\rm some\ shit~if~}x<5 \\ {\rm other~shit~if~}x\geq 5\end{array}\right.[/math]

Anonymous No. 16186203

>>16186165
y = slope *( x - constant_line_part) + constant_line_part

Anonymous No. 16186204

>>16186200
This, or else some shenanigans with the absolute value function.

Anonymous No. 16186350

try 25/2*(x-|x|) -1500

Anonymous No. 16186353

Heaviside step function

Anonymous No. 16186387

dir = (p1-p2)
slope = dir.x / dir.y
y = slope * x

Anonymous No. 16186460

>>16186165
learn about spline and piecewise linear functions dude. they're among the most simple, most ubiquitous, and easiest to use everywhere.

Anonymous No. 16186477

>>16186204
>>16186200
this, or use min/max

Anonymous No. 16186478

>>16186204
[math]
\frac{125\left(x-\operatorname{abs}\left(x+20\right)-76\right)}{8}[/math]

Anonymous No. 16186479

>>16186478
well that sucked
[math]\frac{125\left(x-\operatorname{abs}\left(x+20\right)-76\right)}{8}[/math]

Anonymous No. 16186665

How do I make a polynomial that does this

Anonymous No. 16187450

>>16186665
isn't this literally what tropical geometry is about?
https://en.wikipedia.org/wiki/Tropical_geometry