Trig Grapher: Difference between revisions

From Moonlight Design
Jump to navigation Jump to search
(New page: thumb|400px|right|Screen shot of a sine The Trigonometric Grapher is a {{Tech:Win32}} program that graphs an adjustable equation onto its window. Sine, cosine...)
 
No edit summary
Line 1: Line 1:
[[Image:Program-grapher.png|thumb|400px|right|Screen shot of a sine]] The Trigonometric Grapher is a {{Tech:Win32}} program that graphs an adjustable equation onto its window. Sine, cosine, tangent, cotangent, secant, and cosecant function graphs are possible, and they can also be printed with a high resolution. The colors are fully adjustable.
[[Image:Program-grapher.png|thumb|400px|right|Screen shot of a sine]] The Trigonometric Grapher is a {{Tech:Win32}} program that graphs an adjustable equation onto its window. [http://en.wikipedia.org/wiki/Trigonometry Sine, cosine, tangent, cotangent, secant, and cosecant] function graphs are possible, and they can also be printed with a high resolution. The colors are fully adjustable.


The graphed function is <code>y = A * xyz(B * x + C) + D</code>, where xyz is sin, cos, tan, cot, sec, or csc, depending on what is selected.
The graphed function is <code>y = A * xyz(B * x + C) + D</code>, where xyz is sin, cos, tan, cot, sec, or csc, depending on what is selected.
Line 5: Line 5:
Pi can be added to a text field by either typing a "p" in the field or clicking on the "Pi" button and then clicking in a text field with the upwards-pointing mouse cursor.
Pi can be added to a text field by either typing a "p" in the field or clicking on the "Pi" button and then clicking in a text field with the upwards-pointing mouse cursor.


When the Trigonometric Grapher is printing, the user can graph other functions as the printing happens in a background thread. This was my first multi-threaded program, though its simple architecture sidestepped concurrency issues by not using shared memory.
When the Trigonometric Grapher is printing, the user can graph other functions as the printing happens in a background thread. This was my first [http://en.wikipedia.org/wiki/Thread_%28computer_science%29 multi-threaded] program, though its simple architecture sidestepped [http://en.wikipedia.org/wiki/Concurrency_%28computer_science%29 concurrency] issues by not using shared memory between the threads.


==Download==
==Download==

Revision as of 02:34, 15 October 2007

Screen shot of a sine

The Trigonometric Grapher is a Win32 program that graphs an adjustable equation onto its window. Sine, cosine, tangent, cotangent, secant, and cosecant function graphs are possible, and they can also be printed with a high resolution. The colors are fully adjustable.

The graphed function is y = A * xyz(B * x + C) + D, where xyz is sin, cos, tan, cot, sec, or csc, depending on what is selected.

Pi can be added to a text field by either typing a "p" in the field or clicking on the "Pi" button and then clicking in a text field with the upwards-pointing mouse cursor.

When the Trigonometric Grapher is printing, the user can graph other functions as the printing happens in a background thread. This was my first multi-threaded program, though its simple architecture sidestepped concurrency issues by not using shared memory between the threads.

Download

Screen Shots

Trigonometric Grapher's properties screen
The "about" screen, which discusses how I made this program for fun