The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Discrepancy in Armadillo Multiplication
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  

Posts: 48
Registered: 12/9/11
Discrepancy in Armadillo Multiplication
Posted: Nov 25, 2012 5:55 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I am using the armadillo c++ linear library and am having difficulty with acquiring consistent results. When I print the vector, freq, those are the correct values, but when I multiply it with a scalar value, it is wrong. Even with freq * 1.0! Any suggestions would be great. The values are different from MATLAB.

value = 2.0 * arma::datum::pi * freq;

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.