
Re: RSA and Mathcad
wayne Feb 29, 2012 12:17 PM (in response to lcarlos)In the dcif program, I think you have a problem with the "while", dosn't stop.
Try the attached, I saved as M12. It takes a while to calculate cif when saving or opening in 12, don't know why. But in M15, this delay does not happen.

rsa try.xmcdz.zip 67.0 K

Re: RSA and Mathcad
lcarlos Feb 29, 2012 3:53 PM (in response to wayne)Wayne,
Thanks for your help, but the worksheet is still behaving the same way. Althought the cif and dcif programs runs and return correctly their values, at the end of the worksheet, all the functions mc and md doesn't work.
Best regards,
Luiz

Re: RSA and Mathcad
wayne Feb 29, 2012 4:43 PM (in response to lcarlos)Luiz,
For the results of the mc1, mc2, etc. you used the symbolic equal, just use the equal sign as you did for m1, m1, etc.
For the md functions, need to do the same, however the error says that a number greater than 10^307 was encountered. For md1, you have 217^137, similar for the others. So I guess you need to do someting different here.
Wayne

Re: RSA and Mathcad
lcarlos Feb 29, 2012 5:44 PM (in response to wayne)Wayne,
I have just assigned the value 13 to the cif function and the sheet worked fine. As for the "break if..." you inserted in the dcif function, it didn't work. Concerning the solve operator, I have read from the mathcad forum that by using the solve operator instead of the = operator, mathcad solver is able to handle the 10 to the 307 power restriction. The worksheet is attached.
Please, try it again and tell me what you think about.
Thanks again,
Luiz

rsa try1.xmcd.zip 47.4 K

Re: RSA and Mathcad
wayne Mar 1, 2012 8:44 AM (in response to lcarlos)Luiz,
I put the "break if" temporarily as break in the while loop, but should have used just a limit on the number of iterations.
with the cif=13 fixed, so just looking at the dcif function, without limit on the iterations, some valuse of p, result in very long calculation times, I gave up on p=14 (with q left the same). Can you put a limit on the iterations, or some other iteration limit in the program for dcif
Can you put limits in cif and dcif on the magnitude in a random way?
Those seem to be the problems, large numbers and no limits on the iterations in dcif.
Wayne

Re: RSA and Mathcad
lcarlos Mar 4, 2012 9:47 AM (in response to wayne)Hi Wayne,
I guess the sheet is working now. Take a look at it and tell me what you think about, please.
Best regards,
Luiz Carlos

rsa.xmcd.zip 33.7 K





