Skip to content

Ross-Morgan/croot-gui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Croot-Gui

Build Crates.io

A Rust crate for graphing complex roots and numbers

Context

This crate is designed to be paired with croot

Examples

Create Graph

use croot_gui::prelude::*;

// Complex roots of a function
let roots = vec![ ... ];

// Name of file to generate
let filename = "graph.png";

// Size of image in pixels
let dimensions = (1000, 1000);

// Generate the graph with the selected parameters
generate_graph(roots, filename, dimensions).expect("Failed to generate graph");

Display Graph

use croot_gui::prelude::*;

// Complex roots of a function
let roots = vec![ ... ];

// Size of image and window in pixels
let dimensions = (1000, 1000);

// Open a window containing the graph generated from the selected parameters
show_graph(roots, dimensions).expect("Failed to generate or display graph");

Sample Output

This graph was generated from the 5th roots of 32 and is being displayed in

argand diagram

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages