replace f32 w f64 (supported by fasteval
This commit is contained in:
parent
6dffde0cb7
commit
219d3e88fb
2 changed files with 2 additions and 2 deletions
|
@ -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>>,
|
||||
}
|
||||
|
|
|
@ -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)])),
|
||||
),
|
||||
),
|
||||
]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue