Warning Something's wrong still... 

Forum: Com Sci 12500, U Chicago, Autumn 2002, Discuss Classwork
Re: News Project step #5, deadline Monday 2 December (Mike O'Donnell)
Re: Question Error in exp_xreal? (Maris Goldmanis)
Date: 2002, Nov 29
From: Mark Kittisopikul <markkitt@uchicago.edu>

I haven't investigated the code too much yet but there is something wrong. The following code takes a really long time to execute:
((exp_xreal (rational->xreal 5)) 0.5)
I did some more testing with other things to see what was going on. It seems that the closest it can get in a reasonable time is:
((exp_xreal (rational->xreal 5)) 4)
(0 3.9482220388574776)
If you request precision under 3.94... then it takes a while. The weird thing is that above rational interval does not contain e^5. (exp 5) reports 148.4135... Right now, I don't know what's going on. I need to analyze the algorithm more. I believe the problem traces back to exp_ratintvl->ratintvl:
1 ]=> (exp_ratintvl->ratintvl (list 5 5) 1)

;Value 9: (0 243)

1 ]=> (exp_ratintvl->ratintvl (list 5 5) 4)

;Value 10: (0 3.9482220388574776)

1 ]=> (exp_ratintvl->ratintvl (list 5 5) 2)

;Value 11: (0 15.588457268119898)


Messages

1. Feedback I corrected an error in the last clause of exp_ratintvl->ratintvl by Mike O'Donnell, 2002, Nov 29
2. Feedback It may be very difficult to make exponentiation efficient. by Mike O'Donnell, 2002, Nov 29

to: "Something's wrong still..."