echau01 / ParametricCurveGrapher

A Java Swing application that plots parametric equations on the xy plane

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ParametricCurveGrapher

This program traces out parametric curves in two dimensions. A parametric curve is a set of points in the xy-plane whose coordinates (x, y) are specified in terms of a third variable, t. For any arbitrary t value, the x-coordinate is given by the function x(t), and the y-coordinate is likewise given by the function y(t). The equations for x(t) and y(t) are called the parametric equations of the curve.

GIFs and Screenshots

Here is a GIF of the parametric curve grapher in action:

Parametric curve grapher GIF demo

This screenshot shows the Butterfly Curve being traced out.

Picture of the user interface

Shown below is a screenshot of a parametric curve with a beautiful oscillatory pattern.

A picture of the user interface with a different graph

Usage

To graph a parametric curve using this program, fill in the parametric equations for x(t) and y(t) along with the bounds of the t variable in the appropriate text fields. Then, click the "Draw curve!" button.

This program currently accepts parametric equations containing the variable t, real numbers, operators (+, -, *, /, ^), parentheses, and the trigonometric functions sin, cos, and tan. Constants like e and pi, as well as other functions like ln and arcsin, are not currently supported.

About

A Java Swing application that plots parametric equations on the xy plane


Languages

Language:Java 100.0%