Author Topic: Trigonometry Tool  (Read 7697 times)

0 Members and 1 Guest are viewing this topic.

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Trigonometry Tool
« 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.
You are our 9001st visitor.
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Trigonometry Tool
« Reply #1 on: February 10, 2011 »
It looks nice but I couldn't make it plot a curve?
Shockwave ^ Codigos
Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: Trigonometry Tool
« Reply #2 on: February 10, 2011 »
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:

Offline LittleWhite

  • Senior Member
  • Amiga 1200
  • ********
  • Posts: 418
  • Karma: 31
  • It's me!
    • View Profile
Re: Trigonometry Tool
« Reply #3 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
The demoscene will never die, never!

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Trigonometry Tool
« Reply #4 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
Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: Trigonometry Tool
« Reply #5 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.
You are our 9001st visitor.
Challenge Trophies Won:

Offline va!n

  • Pentium
  • *****
  • Posts: 1435
  • Karma: 109
    • View Profile
    • http://www.secretly.de
Re: Trigonometry Tool
« Reply #6 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!
- 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:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: Trigonometry Tool
« Reply #7 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.
You are our 9001st visitor.
Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: Trigonometry Tool
« Reply #8 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.
You are our 9001st visitor.
Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: Trigonometry Tool
« Reply #9 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.
You are our 9001st visitor.
Challenge Trophies Won:

Offline LittleWhite

  • Senior Member
  • Amiga 1200
  • ********
  • Posts: 418
  • Karma: 31
  • It's me!
    • View Profile
Re: Trigonometry Tool
« Reply #10 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
The demoscene will never die, never!

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: Trigonometry Tool
« Reply #11 on: April 20, 2011 »
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:

Offline LittleWhite

  • Senior Member
  • Amiga 1200
  • ********
  • Posts: 418
  • Karma: 31
  • It's me!
    • View Profile
Re: Trigonometry Tool
« Reply #12 on: April 20, 2011 »
Quote
Maybe 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!

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: Trigonometry Tool
« Reply #13 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.
You are our 9001st visitor.
Challenge Trophies Won:

Offline LittleWhite

  • Senior Member
  • Amiga 1200
  • ********
  • Posts: 418
  • Karma: 31
  • It's me!
    • View Profile
Re: Trigonometry Tool
« Reply #14 on: April 20, 2011 »
Oh yeah you are right ... I forgot this point.
The demoscene will never die, never!

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: Trigonometry Tool
« Reply #15 on: April 20, 2011 »
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: