Profile image

(maths) How to move a periodic relationship on the y axis?

88.7k winterro  1.6 years ago

Sohave been experimenting with jet- powered piston engines for a while, and need a solution how t opush the pistons down in perfect sync. Ive used the sinus, cosine and tangent , sin, cos and tan are all offset by 33.33...% but if you try all three of them in the formula: sin/cos/tan(sum(clamp(pitch,-1,1) *1200)) , you will notice that the tan does not allign with the rest of the codes. and instead spin like crazy. So how do i fix this so the periodic line looks more like that of an ac wavelength? alt text

  • Log in to leave a comment
  • Profile image

    More like jesse we need 2 c00kh sum m3th

    1.6 years ago
  • Profile image
    41.2k Phox

    love <3

    1.6 years ago
  • Profile image

    @ReinMcDeer math has proven it is impossible to pull if you are too smart

    +1 1.6 years ago
  • Profile image
    82.1k ReinMcDeer

    @asteroidbook345 Let g ∈ {all girls}
    yRg iff (g likes y)
    There is no such p such that yRp, where p ∈ {all people}.
    The set {all girls} is a subset of the set {all people}.
    Therefore, there is no g such that yRg.
    QED ☐ ✓

    1.6 years ago
  • Profile image

    If you want to offset by 1/3(33.33…%), just add 360/3=120.
    sin(sum(clamp(Pitch,-1,1) *1200))
    sin(sum(clamp(Pitch,-1,1) *1200)+120)
    sin(sum(clamp(Pitch,-1,1) *1200)+240)
    .
    cosθ=sin(θ+90). That's a 1/4 (25%) offset, so I wouldn't recommend using it here.
    Also, since tanθ=sinθ/cosθ, the waveform is completely different.

    +1 1.6 years ago
  • Profile image

    Why don’t you move a relationship with some girls lmao

    +11 1.6 years ago
  • Profile image
    11.5k JesusChrist

    To get what you have here you'd need to use something like this:

    sin(sum(clamp(Pitch,-1,1) *1200))
    cos(sum(clamp(Pitch,-1,1) *1200))
    cos((sum(clamp(Pitch,-1,1) *1200))+pi)

    And yes pi is a valid number in the game, maybe this should be included in the funky trees guide.

    +1 1.6 years ago
  • Profile image
    82.1k ReinMcDeer

    I'm not sure if I'm visualizing this right, but tan(x) is very different from sin(x) and cos(x).
    You should be able to get away with multiple sin(x) or cos(x) graphs with different x offsets to get what you have in the picture.

    +2 1.6 years ago