Skip to content

rrangwan/42_Mastery_Computerv1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42_Mastery_Computerv1

42 Mastery-level Project implemented using Rust.
This program takes as parameter a string with a polynomial equation problem to solve, and solves it. Solutions include imaginary number cases.

Usage:

$>make

and then

$>./target/release/computor1 "equation in correct format"

example input: $>./target/release/computor1 "5 * X^0 4 * X^1 - 9.3 * X^2 = 1 * X^0"

example output: Reduced form: 4 * X^0 4 * X^1 - 9.3 * X^2 = 0
Polynomial degree: 2
Discriminant is strictly positive, the two solutions are:
0.905239
-0.475131

About

42 Mastery Computerv1 Project, using Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published