AnsweredAssumed Answered

CN0359 RTD.cpp

Question asked by cevdet29 on Aug 2, 2018

Hello

I am wonderig something about CN0359-DesignSupport codes.

Please attention to members of FLOAT_TYPE num_coeff[] and FLOAT_TYPE den_coeff[] arrays.

I am wondering how did these numbers/members created?What is the reference source? 

 

CN0359-DesignSupport\CN0359-SourceCode-RevA\CN0359\source\hal

 

I am ataching the rtd.cpp file..

#if ORDER == 4
//effective bits 15.616
FLOAT_TYPE num_coeff[] = {-2.42580348918581e2l, 4.43575581447635e2l, -8.6570608699616e2l, 7.34933695653457e2l, -7.02396810482965e1l};
FLOAT_TYPE den_coeff[] = {1.e0l, -8.87493143817912e-1l, 2.75291524634514e0l, -3.88521936154463e-1l, 9.08722079164108e-3l};
#endif
#if ORDER == 5
//effective bits 17.8245
FLOAT_TYPE num_coeff[] = {-2.41711451348096e2l, 1.54212010305297e2l, 5.54970679760118e2l, -1.26796609113434e3l, 8.56166744043382e2l, -5.56764891254276e1l};
FLOAT_TYPE den_coeff[] = {1.e0l, 2.63302632747995e-1l, -1.84510086458895e0l, 3.2746227792845e0l, -3.25653791878951e-1l, 3.44022334655219e-3l};
#endif
#if ORDER == 6
//effective bits 19.82
FLOAT_TYPE num_coeff[] = {-2.42142843978731e2l, 5.92083047602897e2l, -9.25895464531705e2l, 1.39340166396238e3l,
-1.47225489959494e3l, 7.09664483583688e2l, -5.48565127920454e1l};
FLOAT_TYPE den_coeff[] = {1.e0l, -1.51978059117102e0l, 2.48277654313265e0l, -3.47112904866882e0l, 2.80056808288615e0l,
-3.19022897847929e-1l, 6.25422836057902e-3l};
#endif
#if ORDER == 7
//effective bits 21.5
FLOAT_TYPE num_coeff[] = {-2.41929621588221e2l, 4.82396434080762e2l, -1.67121893244441e1l, -1.37315140916645e3l,
2.81292843561081e3l, -2.67151104549731e3l, 1.08281818377997e3l, -7.48389592163684e1l};
FLOAT_TYPE den_coeff[] = {1.e0l, -1.08173661281902e0l, -7.63181691057539e-1l, 4.60429829752353e0l, -6.86578653181876e0l,
4.30546544990275e0l, -4.37253401604816e-1l, 7.00961785543309e-3l};
#endif
#if ORDER == 8
//effective bits 23.337
FLOAT_TYPE num_coeff[] = {-2.42050820471513e2l, 9.03922568256792e2l, -1.59215856239e3l, 2.05579651580702e3l,
-2.5023311275312e3l, 2.58715968247352e3l, -1.72836289632771e3l, 5.56615054519548e2l,
-3.85904217448201e1l};
FLOAT_TYPE den_coeff[] = {1.e0l, -2.81393474700247e0l, 4.07953003378532e0l, -4.96524658655131e0l, 5.95307465876528e0l,
-5.20533093922899e0l, 2.29944525926975e0l, -2.31214523979689e-1l, 4.3399532290543e-3l};

cn0359 eval-cn0359-eb1z rtd

Attachments

Outcomes