Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Happy Valentine's Day!
#8
Thanks naked, 
I did major in math in college after starting out as biology major, too much memorization there though learning how body functions was interesting. It was Liberal college so it's not like an MIT Math Major. In fact they wouldn't let me take all the math courses I wanted and I started late so... not too much math.

Actually I learned about Computer Sin and Cos doing hexagonal drawing from example program in SmallBASIC way back in 2014-2015 or so. Oh that's why Sin and Cos are so parctical and helpful!!! From hexagonal to any polygonal number of sides. Then there was polar graphing for radianAngle = 0 to _Pi Step some fraction of Pi like with graphing heart shape. RadianAngle, as in what works for Sin and Cos functions.  Smile

I think this is that program from SmallBASIC:
Code: (Select All)
#!/usr/local/bin/sbasic -g
' hexagon.bas
' 28/05/2000

sf=.95
x=(ymax/2)-10:y=0:cx=xmax/2:cy=ymax/2
c=cos(pi/3):s=sin(pi/3)
c1=cos(pi/36):s1=sin(pi/36)

cls
view xmax/20,xmax/20,xmax/1.2,ymax/1.2,15,2

for j=1 to 30
    sx=x+cx:sy=cy-y
    pset sx,sy
    for i=0 to 6
        sx=x+cx:sy=cy-y
        line sx,sy color i*6
        xn=x*c-y*s
        y=x*s+y*c
        x=xn
    next
    xn=sf*(x*c1-y*s1)
    y=sf*(x*s1+y*c1)
    x=xn
next

You never know when a snippet like this becomes a great teacher!

Now I want to post that code to PE... because I swear this looks so different now???

Oops! No that wasn't the code I learned from, here is SB output:
   

I will try again the old library is still there, I contributed allot! to it. I was the librarian there for awhile Smile
https://smallbasic.github.io/pages/samples.html

Update #2 dang could not find that old code but had fun checking out all this old stuff!
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
Happy Valentine's Day! - by bplus - 02-15-2026, 02:56 AM
RE: Happy Valentine's Day! - by bplus - 02-15-2026, 03:58 AM
RE: Happy Valentine's Day! - by PhilOfPerth - 02-15-2026, 04:51 AM
RE: Happy Valentine's Day! - by Magdha - 02-15-2026, 10:05 AM
RE: Happy Valentine's Day! - by bplus - 02-15-2026, 03:31 PM
RE: Happy Valentine's Day! - by NakedApe - 02-15-2026, 04:51 PM
RE: Happy Valentine's Day! - by Dimster - 02-15-2026, 05:19 PM
RE: Happy Valentine's Day! - by bplus - 02-15-2026, 05:24 PM
RE: Happy Valentine's Day! - by bplus - 02-15-2026, 05:53 PM
RE: Happy Valentine's Day! - by SMcNeill - 02-15-2026, 05:58 PM
RE: Happy Valentine's Day! - by bplus - 02-15-2026, 07:56 PM
RE: Happy Valentine's Day! - by Kernelpanic - 02-15-2026, 08:38 PM
RE: Happy Valentine's Day! - by bplus - 02-15-2026, 08:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Happy Independence Day! bplus 3 841 07-07-2025, 10:54 PM
Last Post: bobalooie
  Happy New Year Globe! SierraKen 2 830 01-01-2025, 08:57 PM
Last Post: SierraKen
  Happy New Year! bplus 3 1,438 01-01-2023, 08:35 AM
Last Post: gaslouk
  Happy 4th of July! SierraKen 2 951 07-05-2022, 06:56 PM
Last Post: SierraKen
  DOW - Happy Birthday, Merry Christmas, When? TarotRedhand 5 1,240 05-24-2022, 09:25 PM
Last Post: dcromley

Forum Jump:


Users browsing this thread: 1 Guest(s)