Skip to content

Latest commit

 

History

History

truncated_cubic

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Truncated Cubic Hermite Spline

Description

  • After peroxide v0.31.6, we can evaluate spline with a condition
  • The condition we use here is :

$$ p(x) = \begin{cases} 0 & (x > 0) \\ -2 & (x < -2) \\ x & \text{else} \end{cases} $$

Build Process

# Run
cargo run --release

Result

Result