replace f32 w f64 (supported by fasteval

This commit is contained in:
Breval Ferrari 2024-11-11 15:14:23 -05:00
parent 6dffde0cb7
commit 219d3e88fb
No known key found for this signature in database
GPG key ID: 6FED68D87C479A59
2 changed files with 2 additions and 2 deletions

View file

@ -13,5 +13,5 @@ use super::Expression as Instruction;
pub struct Instrument {
#[target]
expr: Instruction,
vars: Option<HashMap<String, f32>>,
vars: Option<HashMap<String, f64>>,
}

View file

@ -41,7 +41,7 @@ fn bngfile_generator() -> BngFile {
"square".to_string(),
Instrument::new(
"v*abs(sin(2*PI*f*t))".parse().unwrap(),
Some(HashMap::from([("v".to_string(), 1f32)])),
Some(HashMap::from([("v".to_string(), 1f64)])),
),
),
]),