[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Hey guys, I suck at math. Suppose I wanted to construct a function

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 9
Thread images: 2

File: Unbenannt.png (5KB, 464x374px) Image search: [Google]
Unbenannt.png
5KB, 464x374px
Hey guys,

I suck at math. Suppose I wanted to construct a function that looks like this (pic related). Behaving like a line, but having periodic 'steps'.

What could such a function, I mean the formula, look like?
>>
File: Capture.png (12KB, 468x232px) Image search: [Google]
Capture.png
12KB, 468x232px
x+sin(x)
>>
Define it piecewise or use some step punction fuckery.
>>
>>9074154
f(x)= x + (literally any periodic function that ranges from -1 to 1)
>>
>>9074220
here's an example, plug this into wolfram alpha to get a less smooth version of this >>9074171

2/pi*arcsin(sin(pi*x))+2x
>>
>>9074224

[math]\sum\limits_{0\leq k \leq n}{(k\ \bmod\ n)}[/math]

This will give you an integer sequence
>>
>>9074224
how did you come up with that?
>>
>>9074622

I fucked it up

this uses a predicate, expressed by square brackets

I guess you could use this for real n

[math]n -\sum\limits_{0 \leq k \leq n}{[k\ \bmod\ a = 0]}[/math]
>>
>>9074624
The expression arcsin(sin(pi*x)) evaluates sin(pi*x) before applying the arcsin. The result is that the expression won't just be equivalent to pi*x once sin(pi*x) reverses its direction of change at sin(pi/2) and sin(-pi/2); it'll be a cyclical expression. What you get is a triangle wave with a slope that changes from pi to -pi. By multiplying this expression by 2/pi, you get a triangle wave with a slope of ±2. When you add 2x to that triangle wave, it amplifies the +2-slope portions to have a slope of 4, and it attenuates the -2-slope portions to have a slope of 0. The result is a step function constructed from a triangle wave.

I suggest playing with Desmos if you're just interested in the relation of a function to its graph. It's faster than Wolfram and will update in real-time.
Thread posts: 9
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.