A Java-based application to visualize mathematical curves in Cartesian and Polar (Radial) coordinate systems. The app uses sliders for real-time control over parameters like Amplitude (A), Frequency (W), and Phase Shift (PHI).
c = x + iy (a point in the complex plane)
z₀ = 0
Recurrence: zₙ₊₁ = zₙ² + c
Location | Preview |
---|---|
Overview | ![]() |
Left Zoom | ![]() |
Left | ![]() |
Center | ![]() |
Bottom | ![]() |
The app provides interactive sliders to dynamically update curves:
int function(float x){
A = sliderA.getValue();
W = sliderW.getValue()/1000.0;
PHI = sliderPHI.getValue()/100.0;
return (int)(Math.sin(W * x + PHI) * A); // Sine Wave
}
public AppCartesian(){
points = new ArrayList<>();
new Timer(sliderDelay.getValue(), e -> {
x += (float)(sliderStep.getValue()/10f);
add -> points.add(new Point((int)x,function(x),(int)size,Color.BLUE));
repaint();
}).start();
}