“same” values appear in the leaf in an ADD

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



“same” values appear in the leaf in an ADD



In my ADD computation, I often have repeated values in the leaves. Should they be automatically compressed?



For example:



-0-0-- 191.452



-0-1-- 191.452



-1-0-- 191.452



-1-1-- 191.452



One guess is that they have different mantissa which is not shown. But I also have values with more mantissa:



---0-0 8.14148



---0-1 9.65706



---1-0 8.14148



---1-1 9.65706



I can only suppose the hidden digits are different so they appear in different leaves...



It seems like it only shows 6 digits. Can I change this setting?
Can anyone confirm my doubts?
Thanks a lot.




1 Answer
1



You can change the "epsilon" determining whether two values are considered equal.



This should set the epsilon value to a millionth:


Cudd_SetEpsilon(manager, 1.0e-6);



The default is defined in cuddInt.h as 1.0e-12:


#define DD_EPSILON (1.0e-12)



If I am not mistaken, the printing happens in the internal function ddPrintMintermAux in cuddUtil.c using fprintf with the %g conversion specifier. You could change that code in CUDD and rebuild it to print the numbers with higher precision.


ddPrintMintermAux


cuddUtil.c


fprintf


%g






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

make 2 or more post in bootsrap

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3

Firebase Auth - with Email and Password - Check user already registered