diff options
| author | Siarhei B <[email protected]> | 2025-11-16 01:29:53 +0100 |
|---|---|---|
| committer | Siarhei B <[email protected]> | 2025-11-16 01:32:02 +0100 |
| commit | f236bb49301e3e726d60e0af8f6b998083b6215e (patch) | |
| tree | 3dbff8fa67f50db5cfbee95dd1156accafaf6c6b /examples | |
| parent | 0e0253b67100b6ffbaad4f1307f671e9ddec3901 (diff) | |
mspm0: apply formatting for new Mathacl & example
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/mspm0g3507/src/bin/mathacl_ops.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/mspm0g3507/src/bin/mathacl_ops.rs b/examples/mspm0g3507/src/bin/mathacl_ops.rs index 429cc5ad6..06265ae18 100644 --- a/examples/mspm0g3507/src/bin/mathacl_ops.rs +++ b/examples/mspm0g3507/src/bin/mathacl_ops.rs | |||
| @@ -22,12 +22,12 @@ async fn main(_spawner: Spawner) -> ! { | |||
| 22 | // in range [-1,1) | 22 | // in range [-1,1) |
| 23 | let angle = 0.5; | 23 | let angle = 0.5; |
| 24 | match macl.sin(angle, Precision::High) { | 24 | match macl.sin(angle, Precision::High) { |
| 25 | Ok(res) => info!("sin({}) = {}", angle*180.0, res), | 25 | Ok(res) => info!("sin({}) = {}", angle * 180.0, res), |
| 26 | Err(e) => error!("sin Error: {:?}", e), | 26 | Err(e) => error!("sin Error: {:?}", e), |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | match macl.cos(angle, Precision::Medium) { | 29 | match macl.cos(angle, Precision::Medium) { |
| 30 | Ok(res) => info!("cos({}) = {}", angle*180.0, res), | 30 | Ok(res) => info!("cos({}) = {}", angle * 180.0, res), |
| 31 | Err(e) => error!("cos Error: {:?}", e), | 31 | Err(e) => error!("cos Error: {:?}", e), |
| 32 | } | 32 | } |
| 33 | 33 | ||
