(t_pos: f64, pos: f64, f: f64, w: f64, max_pos: f64, func: &str)
| 260 | } |
| 261 | |
| 262 | pub fn limit_price(t_pos: f64, pos: f64, f: f64, w: f64, max_pos: f64, func: &str) -> f64 { |
| 263 | limit_price_checked(t_pos, pos, f, w, max_pos, func).expect("invalid limit_price function") |
| 264 | } |
| 265 | |
| 266 | pub fn limit_price_checked( |
| 267 | t_pos: f64, |