Square Root Calculation

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Square Root Calculation

ソリューションへジャンプ
1,855件の閲覧回数
drummer
Contributor IV

I need to do statistical analysis (standard deviation) on analog voltage samples collected every second.

I am using an MCF52259 custom board with MQX.

I found that after improving the Ethernet radiated EMI my A-D converter became much more stable.

How do you do a square root operation on an int_32 ?

タグ(1)
0 件の賞賛
返信
1 解決策
1,218件の閲覧回数
timias
Contributor IV

#include <math.h>

sqrt

but it is possible that the needed math function wasn't included in your precompiled library. So in project settings under linker you may need to change your "c" library to a different one. For example the one the default projects pick for my processor is:

"${PAToolsBaseDir}/PA_Support/ewl/lib/libc_E200z760_VLE.a"

I needed to switch to

"${PAToolsBaseDir}/PA_Support/ewl/lib/libc99_E200z760_VLE.a" - the regain some left out functions. The docs in the help folder under your Codewarrior install should help, assuming you as using Codewarrior.

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,219件の閲覧回数
timias
Contributor IV

#include <math.h>

sqrt

but it is possible that the needed math function wasn't included in your precompiled library. So in project settings under linker you may need to change your "c" library to a different one. For example the one the default projects pick for my processor is:

"${PAToolsBaseDir}/PA_Support/ewl/lib/libc_E200z760_VLE.a"

I needed to switch to

"${PAToolsBaseDir}/PA_Support/ewl/lib/libc99_E200z760_VLE.a" - the regain some left out functions. The docs in the help folder under your Codewarrior install should help, assuming you as using Codewarrior.

0 件の賞賛
返信