Dark Bit Factory & Gravity

GENERAL => Projects => Topic started by: combatking0 on February 10, 2011

Title: Trigonometry Tool
Post by: combatking0 on February 10, 2011
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.
Title: Re: Trigonometry Tool
Post by: Shockwave on February 10, 2011
It looks nice but I couldn't make it plot a curve?
Title: Re: Trigonometry Tool
Post by: combatking0 on February 10, 2011
Sorry - I forgot to mention. You need to click and rotate the orange line to make it work.
Title: Re: Trigonometry Tool
Post by: LittleWhite on February 11, 2011
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
Title: Re: Trigonometry Tool
Post by: Jim on February 11, 2011
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
Title: Re: Trigonometry Tool
Post by: combatking0 on February 11, 2011
@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.
Title: Re: Trigonometry Tool
Post by: va!n on February 21, 2011
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!
Title: Re: Trigonometry Tool
Post by: combatking0 on February 21, 2011
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.
Title: Re: Trigonometry Tool
Post by: combatking0 on April 17, 2011
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.
Title: Re: Trigonometry Tool
Post by: combatking0 on April 18, 2011
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.
Title: Re: Trigonometry Tool
Post by: LittleWhite on April 20, 2011
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
Title: Re: Trigonometry Tool
Post by: combatking0 on April 20, 2011
Thanks for taking the time to look for these problems. I'll fix them this weekend. K+
Title: Re: Trigonometry Tool
Post by: LittleWhite on April 20, 2011
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 )
Title: Re: Trigonometry Tool
Post by: combatking0 on April 20, 2011
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.
Title: Re: Trigonometry Tool
Post by: LittleWhite on April 20, 2011
Oh yeah you are right ... I forgot this point.
Title: Re: Trigonometry Tool
Post by: combatking0 on April 20, 2011
I've not written the manual yet - many things have been left unexplained, but they'll make sense later.