• Welcome to The Campaign Builder's Guild.
 

refining geometric formula

Started by SDragon, October 02, 2006, 11:02:47 PM

Previous topic - Next topic

SDragon

im trying to backwards engineer the mathematic formula used to get the angle of each point of an even (note: as in, equal; not as in even numbers) star. please note that this only needs to work for stars with an odd number of points, as far as i am personally concerned. since you guys are easily the smartest group of people i know on the net, i figured i would ask you for help.

with no further ado, the current version of the formula:

360/a=b
180-(b*c)=d

a = # of points to the star
b = # of degrees between the points
1 < c < ((a+1)/2)
d = degrees to make the angle of each point


does this make sense? can somebody actually try mapping this idea out, and seeing where it might need work? also, if any part of it can be simplified, can you point that out?

thanks in advance :)

edit- the formula has been simplified slightly, with a little bit of an explaination of the variables. note that 2 is always a valid option for variable c.
[spoiler=My Projects]
Xiluh
Fiendspawn
Opening The Dark SRD
Diceless Universal Game System (DUGS)
[/spoiler][spoiler=Merits I Have Earned]
divine power
last poster in the dragons den for over 24 hours award
Commandant-General of the Honor Guard in Service of Nonsensical Awards.
operating system
stealer of limetom's sanity
top of the tavern award


[/spoiler][spoiler=Books I Own]
D&D/d20:
PHB 3.5
DMG 3.5
MM 3.5
MM2
MM5
Ebberon Campaign Setting
Legends of the Samurai
Aztecs: Empire of the Dying Sun
Encyclopaedia Divine: Shamans
D20 Modern

GURPS:

GURPS Lite 3e

Other Systems:

Marvel Universe RPG
MURPG Guide to the X-Men
MURPG Guide to the Hulk and the Avengers
Battle-Scarred Veterans Go Hiking
Champions Worldwide

MISC:

Dungeon Master for Dummies
Dragon Magazine, issues #340, #341, and #343[/spoiler][spoiler=The Ninth Cabbage]  \@/
[/spoiler][spoiler=AKA]
SDragon1984
SDragon1984- the S is for Penguin
Ona'Envalya
Corn
Eggplant
Walrus
SpaceCowboy
Elfy
LizardKing
LK
Halfling Fritos
Rorschach Fritos
[/spoiler]

Before you accept advice from this post, remember that the poster has 0 ranks in knowledge (the hell I'm talking about)

Captain Obvious

Assuming i understand your queary correctly, there is no actual way to work tha put for all stars, since the angles are not fixed.

imagine a seven pointed star with short points, and a seven pointed star with very long spikes. The angles inside the star with the short points would be far larger than the angles inside the points of the long pointed spiky star. It's a bit difficult to describe geometry without pictures, but let me know if i understand your question and you understand my point (heh, point! good one...).
[spoiler=My Campaign Settings]
The Age of Kings: My main CS(Comments and Criticism welcomed)
Shadows of the Last Alliance: My PbP game\'s CS (Not much written here yet)
...As it is in Heaven: My newer CS (currently mostly just brainstorming)
Vorsatz: my newest setting.[/spoiler]
[spoiler=Quotes]
\"We cross our bridges when we come to them and burn them behind us, leaving only the memory of smoke and the presumption that once our eyes watered.\" -Samuel Beckett
\"Who am I lady? I\'m your worst nightmare. A pumpkin with a gun!\" -Merv Pumpkinhead
\"This whole Case is like a chocolate jigsaw puzzle: It\'s messy, it sticks to your fingers and you don\'t know whether to fit the peices together or just take a big bite.\" - Jack Leaderboard
"Pig's lips meet my lips,
Pig's Stomach meets my stomach,
A meeting of meats."
- Anonnymous hotdog haiku.[/spoiler]
My Unitarian Jihad Name is Brother Boot Knife of Forgiveness.
Instigator of the Weirdo Invasion! :weirdo:

!turtle Are you a member of the turtle club? You bet your boots I am!

SDragon

you mean you can have both an obtuse septagram AND an acute septagram? whoa.... that kinda puts a dent in the issue.

that said, it doesnt have to be able to produce ALL septagrams, just a septagram, with equal points. or a pentagram, if thats what it was desired to be useed for. or an eleven-pointed star (heptagram, if im not mistaken?). or even....

you get the idea, i hope :D


edit- ok, i can see how septagrams can be both obtuse and acute, so im revising the last line of the formula by replacing the 2 in 2b with c, where:

1 < c < (a+1)/2

2 is always a possible option for c, so im keeping the original version of the formula up, with the 2.

edit- re-labeled the variables mentioned in this post, to keep consistant.
[spoiler=My Projects]
Xiluh
Fiendspawn
Opening The Dark SRD
Diceless Universal Game System (DUGS)
[/spoiler][spoiler=Merits I Have Earned]
divine power
last poster in the dragons den for over 24 hours award
Commandant-General of the Honor Guard in Service of Nonsensical Awards.
operating system
stealer of limetom's sanity
top of the tavern award


[/spoiler][spoiler=Books I Own]
D&D/d20:
PHB 3.5
DMG 3.5
MM 3.5
MM2
MM5
Ebberon Campaign Setting
Legends of the Samurai
Aztecs: Empire of the Dying Sun
Encyclopaedia Divine: Shamans
D20 Modern

GURPS:

GURPS Lite 3e

Other Systems:

Marvel Universe RPG
MURPG Guide to the X-Men
MURPG Guide to the Hulk and the Avengers
Battle-Scarred Veterans Go Hiking
Champions Worldwide

MISC:

Dungeon Master for Dummies
Dragon Magazine, issues #340, #341, and #343[/spoiler][spoiler=The Ninth Cabbage]  \@/
[/spoiler][spoiler=AKA]
SDragon1984
SDragon1984- the S is for Penguin
Ona'Envalya
Corn
Eggplant
Walrus
SpaceCowboy
Elfy
LizardKing
LK
Halfling Fritos
Rorschach Fritos
[/spoiler]

Before you accept advice from this post, remember that the poster has 0 ranks in knowledge (the hell I'm talking about)

brainface

The obtuse angles are the same as the angles in the regular polygram with the corresponding number of sides:
Quote from:  180 degrees)

I'm not sure of this, I [i
really[/i] wish i'd tested it at work, where i had software that could autodraw an icosogon. :P

Is this even what you're asking? or are you wanting to like locate the points of a polygon from an origin or something crazy like that? If you're doing protractor & ruler, this is what you need.

If you've got a compass and straightedge, there's easier methods not involving measurement ;)
"The perfect is the enemy of the good." - Voltaire

brainface

The first formula was true, but only for hexagons. :)

i think this is the obtuse polygram, supa?




It's been a long time since geometry class.

a1 = pi(1-2/n)
a2 = pi/n
a4 = 2*pi/n
a5 = pi(1-4/n)

a1 = 180 (1-2/n)
a2 = 360/n
a4 = 180/n
a5 = 180 (1-4/n)


I hope i got the question right. hell, i had fun, anyway...
"The perfect is the enemy of the good." - Voltaire

SDragon

whoa.... a tad over my head.

here, let me see if i can try to explain the theory behind the formula in the first post, using a pentagram as an example.


first off, with a pentagram, we have already decided a=5. at this point, i would like to define c, since it is much easier with a pentagram:

1<c<((a+1)/2) = 1<c<((5+1)/2) = 1<c<3, which means c=2.

we have now figured out how many points in the star (a), and how many points to "pass" (for lack of a more technical term) to get a polygram, as opposed to a polygon (c).

for b, we use the following equation:

360/a=b. since a=5, this is 360/5=b=64.

we have now, essentially, dissected a circle evenly into 5 (a) pieces. the circle is represented in brown, and the lines between each section are in blue.

at this point, we use the knowledge that the sum of all three angles in any triangle is 180 degrees. skipping over 2 (c) points, we get the triangle with the yellow hypotenus (sp?); we already know the angle opposing the hypotenus is b*c, or 2b, so the formula to figure out the angles of the other two corners would be:

(180-c*b)/2=d

but wait! the angle of the point would be 2d, so we can take out the step where we divide by two in that equation. this leaves:

180-c*b=d


the equations, step-by-step, would then be:

360/a=b
1<c<((a+1)/2)
180-c*b=d


at least, i think thats how that would work? i feel confident about it, but i also know that no amount of confidence can argue mathematics....
[spoiler=My Projects]
Xiluh
Fiendspawn
Opening The Dark SRD
Diceless Universal Game System (DUGS)
[/spoiler][spoiler=Merits I Have Earned]
divine power
last poster in the dragons den for over 24 hours award
Commandant-General of the Honor Guard in Service of Nonsensical Awards.
operating system
stealer of limetom's sanity
top of the tavern award


[/spoiler][spoiler=Books I Own]
D&D/d20:
PHB 3.5
DMG 3.5
MM 3.5
MM2
MM5
Ebberon Campaign Setting
Legends of the Samurai
Aztecs: Empire of the Dying Sun
Encyclopaedia Divine: Shamans
D20 Modern

GURPS:

GURPS Lite 3e

Other Systems:

Marvel Universe RPG
MURPG Guide to the X-Men
MURPG Guide to the Hulk and the Avengers
Battle-Scarred Veterans Go Hiking
Champions Worldwide

MISC:

Dungeon Master for Dummies
Dragon Magazine, issues #340, #341, and #343[/spoiler][spoiler=The Ninth Cabbage]  \@/
[/spoiler][spoiler=AKA]
SDragon1984
SDragon1984- the S is for Penguin
Ona'Envalya
Corn
Eggplant
Walrus
SpaceCowboy
Elfy
LizardKing
LK
Halfling Fritos
Rorschach Fritos
[/spoiler]

Before you accept advice from this post, remember that the poster has 0 ranks in knowledge (the hell I'm talking about)

brainface

you're going from the center, okay. I was starting from the outside. pictures for the win.
"The perfect is the enemy of the good." - Voltaire

SDragon

which would explain exactly why all of what you said went over my head....

now does what im saying make sense?

and if it does, more importantly, is it mathematically accurate? if i had a protractor and ruled straightedge, i would test it out for myself, but...
[spoiler=My Projects]
Xiluh
Fiendspawn
Opening The Dark SRD
Diceless Universal Game System (DUGS)
[/spoiler][spoiler=Merits I Have Earned]
divine power
last poster in the dragons den for over 24 hours award
Commandant-General of the Honor Guard in Service of Nonsensical Awards.
operating system
stealer of limetom's sanity
top of the tavern award


[/spoiler][spoiler=Books I Own]
D&D/d20:
PHB 3.5
DMG 3.5
MM 3.5
MM2
MM5
Ebberon Campaign Setting
Legends of the Samurai
Aztecs: Empire of the Dying Sun
Encyclopaedia Divine: Shamans
D20 Modern

GURPS:

GURPS Lite 3e

Other Systems:

Marvel Universe RPG
MURPG Guide to the X-Men
MURPG Guide to the Hulk and the Avengers
Battle-Scarred Veterans Go Hiking
Champions Worldwide

MISC:

Dungeon Master for Dummies
Dragon Magazine, issues #340, #341, and #343[/spoiler][spoiler=The Ninth Cabbage]  \@/
[/spoiler][spoiler=AKA]
SDragon1984
SDragon1984- the S is for Penguin
Ona'Envalya
Corn
Eggplant
Walrus
SpaceCowboy
Elfy
LizardKing
LK
Halfling Fritos
Rorschach Fritos
[/spoiler]

Before you accept advice from this post, remember that the poster has 0 ranks in knowledge (the hell I'm talking about)

brainface

dude 360/5 is 72.
that confused me for 30 frigg'n minutes. :(
Your answer is either giving double or exactly what it should. (is the answer 18 or 36 degrees? I can't tell)

If your formula is doing what you want it to do for pentagrams, then it matches my formula. (Your d is my a4)

180*(1-4/a) = 180 - c * 360/a
when c = 2

I didn't solve for anything but c = 2. (i really couldn't follow you without a picture and just found the value of every angle in an n-sided pentagram i could ;))

"The perfect is the enemy of the good." - Voltaire

SDragon

Quote from: brainfacedude 360/5 is 72.
that confused me for 30 frigg'n minutes. :(
Your answer is either giving double or exactly what it should. (is the answer 18 or 36 degrees? I can't tell)

If your formula is doing what you want it to do for pentagrams, then it matches my formula. (Your d is my a4)

180*(1-4/a) = 180 - c * 360/a
when c = 2

I didn't solve for anything but c = 2. (i really couldn't follow you without a picture and just found the value of every angle in an n-sided pentagram i could ;))



i honestly have no clue whatsoever how i was getting 64. honest.

assuming my formula is accurate, the angle on each point of a pentagram (as marked by the gray dots in my picture) would be 36 degrees. keep in mind, the only possible value for c in a pentagram is 2. polygrams with more points, such as a septagram, would have more possible values for c.

incidently, according to my formula:

when a=5, d=36

when a=7 and c=2, d=77.142857~

when a=7 and c=3, d=25.714285~

if somebody could use a protractor/straightedge, or mapping program to either confirm or deny these numbers....
[spoiler=My Projects]
Xiluh
Fiendspawn
Opening The Dark SRD
Diceless Universal Game System (DUGS)
[/spoiler][spoiler=Merits I Have Earned]
divine power
last poster in the dragons den for over 24 hours award
Commandant-General of the Honor Guard in Service of Nonsensical Awards.
operating system
stealer of limetom's sanity
top of the tavern award


[/spoiler][spoiler=Books I Own]
D&D/d20:
PHB 3.5
DMG 3.5
MM 3.5
MM2
MM5
Ebberon Campaign Setting
Legends of the Samurai
Aztecs: Empire of the Dying Sun
Encyclopaedia Divine: Shamans
D20 Modern

GURPS:

GURPS Lite 3e

Other Systems:

Marvel Universe RPG
MURPG Guide to the X-Men
MURPG Guide to the Hulk and the Avengers
Battle-Scarred Veterans Go Hiking
Champions Worldwide

MISC:

Dungeon Master for Dummies
Dragon Magazine, issues #340, #341, and #343[/spoiler][spoiler=The Ninth Cabbage]  \@/
[/spoiler][spoiler=AKA]
SDragon1984
SDragon1984- the S is for Penguin
Ona'Envalya
Corn
Eggplant
Walrus
SpaceCowboy
Elfy
LizardKing
LK
Halfling Fritos
Rorschach Fritos
[/spoiler]

Before you accept advice from this post, remember that the poster has 0 ranks in knowledge (the hell I'm talking about)

brainface

it works on a 23-gon at c=2,c=3,c=4, and c=11. i'm not testing any further than that. ;)
"The perfect is the enemy of the good." - Voltaire