• Welcome to Dark Bit Factory & Gravity.
 

Trigonometry Tool

Started by combatking0, February 10, 2011

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

combatking0

After completing Grapher, I have moved onto this.

Please ignore the intro screen - my superiors haven't yet approved it and it could be changed. It was added to Grapher before that project was copied and altered to make this.

This is a graphical representation of Sine and Cosine in relation to an angle.

The UI features need to be developed, and the Options Panel has been copied from the Grapher project, and doesn't yet do anything. This will be corrected soon.

Attached is the Windows version.
You are our 9001st visitor.
Challenge Trophies Won:

Shockwave

It looks nice but I couldn't make it plot a curve?
Shockwave ^ Codigos
Challenge Trophies Won:

combatking0

Sorry - I forgot to mention. You need to click and rotate the orange line to make it work.
You are our 9001st visitor.
Challenge Trophies Won:

LittleWhite

Hum ok ... I don't see the option working ...
I wanted nice sinus / cosinus ... but they are not displayed ... :P
Actually ... I prefer to use wikipedia than you tool ...
And the help could say that we to click on orange line ... (The help seems to not match the app ...)
I am a bit lost in fact by the purpose of the app
The demoscene will never die, never!

Jim

Once you grok the orange bar thing it's OK.  But it's interesting that you chose 0 to be at the East position instead of at the North position.  And it's a question as to whether the radians go from 0->2pi or -pi->pi
I'm guessing it's rounding problems in Flash's math lib where I can have Cos=1 and Sin<>0.

Would be lovely to see an anim of the orange bar rotating round, and giving the classic Sin wave on a graph off to the right, and possibly even the cos wave below.  That gave Pythagoras a boner so it should be worth a try.

Jm
Challenge Trophies Won:

combatking0

@Littlewhite: The help and options have been copied from another project, and they'll be changed to match the functions of this one soon.

@Jim: I'm not sure what you mean about the range of radians being 0 to 2pi or -pi to pi, but the bits where cos=1 and sin<>0 happens because of how I'm rounding things off.

I like the idea of the orange bar rotating automatically with the two graphs coming off it - that might be a seperate program though. I'll see if I can add it as a second mode to this program for an added challenge.
You are our 9001st visitor.
Challenge Trophies Won:

va!n

nice flash app... First i had problems how to use, until i read your post to pick the organge line and move/rotate ^^  Maybe you should change the textboxes in the right top corner, so they are not editable! (Or maybe just let the user type in the value and when pressing enter, just change all the others editboxes and update the graphic! Anyway, interesting tool!
- hp EliteBook 8540p, 4 GB RAM, Windows 8.1 x64
- Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows 8.1 x64
http://www.secretly.de
Challenge Trophies Won:

combatking0

Doh! They're still set as Input Text boxes. I hadn't noticed this. Thank you for telling me.

I'll add an option to enter an angle in a seperate text box (either in Degrees or Radians) which will update the rotation of the orange bar.

There should be an update of this program this week, but while it won't be complete, it will be a lot more user friendly.
You are our 9001st visitor.
Challenge Trophies Won:

combatking0

Over a week behind schedule, but it doesn't matter, since we've had not teachers in last week, nor for the next week.

We've decided not to include the automatic rotation and graph drawing option in this version, as it may confuse some of the lower ability pupils. I will make a second version of the program to illustrate this excellent suggestion.

The options are almost finished - I just need to fix the radiobuttons which switch between displaying Degrees and Radians near the centre of the graph. The Help section will also be permenantly on display in the lower right-hand-side since that space is empty.

I was planning on completing and releasing this today, but it will have to be tomorrow lunch time instead.
You are our 9001st visitor.
Challenge Trophies Won:

combatking0

This is the first "final" release of Trig Tool - please feel free to use it amongst yourselves, but don't distribute it.

You are also welcome to demonstrate it to budding coders or mathematicians who don't fully understand Sine and Cosine, but want to.
You are our 9001st visitor.
Challenge Trophies Won:

LittleWhite

Finally ... I have restested it \ o /

the -0.4 test is selectable ...
The radian value should be a bit truncated :P

Otherwise, friend of mice said:
It looks like a submarine radar simulation :D
The demoscene will never die, never!

combatking0

Thanks for taking the time to look for these problems. I'll fix them this weekend. K+
You are our 9001st visitor.
Challenge Trophies Won:

LittleWhite

QuoteMaybe you should change the textboxes in the right top corner, so they are not editable!
I don't know... but ... ok they were not editable, but you can still click in it and have a text cursor (but can't change it :p )
The demoscene will never die, never!

combatking0

Yes, they're selectable so that the user can copy from this program and paste the numbers into other programs. If they felt that was useful for any reason.
You are our 9001st visitor.
Challenge Trophies Won:

LittleWhite

Oh yeah you are right ... I forgot this point.
The demoscene will never die, never!

combatking0

I've not written the manual yet - many things have been left unexplained, but they'll make sense later.
You are our 9001st visitor.
Challenge Trophies Won: