Graphing/Testing/Program.cs

36 lines
996 B
C#

using Graphing.Forms;
using Graphing.Graphables;
using System;
using System.Windows.Forms;
namespace Graphing.Testing;
internal static class Program
{
[STAThread]
public static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.SetHighDpiMode(HighDpiMode.PerMonitorV2);
GraphForm graph = new("One Of The Graphing Calculators Of All Time");
Equation equ = new(Math.Sin);
SlopeField sf = new(2, (x, y) => Math.Cos(x));
TangentLine tl = new(2, 2, equ);
graph.Graph(equ, sf, tl);
// You can preload graphs in by going Misc > Preload Cache.
// Keep in mind this uses more memory than usual and can take
// some time.
// Integrating equations is now much smoother and less intensive.
// Try it out!
// You can click and drag on an equation to select specific points.
Application.Run(graph);
}
}