Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Steve's basic SIN/COS Tutorial
#6
not bad Steve, you could throw in a couple more formulas, namely

the rotation matrix -- rotate any point (x,y) along the origin:
Code: (Select All)
newx = x*cos(angle) - y*sin(angle)
newy = x*sin(angle) + y*cos(angle)
bonus points if you derive it from scratch

and also, using trig to model any kind of oscillatory behavior, a radians crash course
Code: (Select All)
y = A * sin ( 2*pi * f * t )
where A is amplitude, or "height" of the sine wave, f for frequency or oscillation cycles/time with t being time or some other free parameter

and that's a fair overview of most of the trig you might require as a programmer
Reply


Messages In This Thread
Steve's basic SIN/COS Tutorial - by SMcNeill - 05-10-2024, 09:35 AM
RE: Steve's basic SIN/COS Tutorial - by grymmjack - 05-16-2024, 10:08 PM
RE: Steve's basic SIN/COS Tutorial - by SMcNeill - 05-16-2024, 10:41 PM
RE: Steve's basic SIN/COS Tutorial - by Pete - 07-12-2024, 01:57 AM
RE: Steve's basic SIN/COS Tutorial - by vince - 07-12-2024, 06:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  request for printing patterns with for loops tutorial fistfullofnails 24 4,220 08-19-2025, 08:09 PM
Last Post: bplus
  a little tutorial demo for Windows in SCREEN 0 TempodiBasic 0 586 12-10-2024, 01:00 AM
Last Post: TempodiBasic
  Portable Version of Terry Ritchie's Tutorial Updated mpgcan 6 5,813 09-22-2024, 09:13 PM
Last Post: TerryRitchie
  BIG QB64 Tutorial update TerryRitchie 4 1,515 05-22-2024, 06:20 PM
Last Post: TerryRitchie
  Steve's Lesson on Checksums SMcNeill 0 730 05-10-2024, 06:33 PM
Last Post: SMcNeill

Forum Jump:


Users browsing this thread: 1 Guest(s)