Skip to content

Instantly share code, notes, and snippets.

@repass
repass / main.rs
Last active January 19, 2023 19:54
symbolic differentiator for polynomial expressions of one variable
// single variable differentiator
// repass 1/9/23
use std::io;
use std::io::prelude::*;
struct Expr {
coeffecient: f32,
variable: String,
exponent: i32,

Keybase proof

I hereby claim:

  • I am repass on github.
  • I am repass (https://keybase.io/repass) on keybase.
  • I have a public key whose fingerprint is D3A8 9710 FCF2 FC67 4B4D BD98 D240 5454 588E F587

To claim this, I am signing this object: