From: Alan W. I. <ir...@be...> - 2001-10-29 21:31:42
|
To address the issue of how well the java examples produce identical results to the C examples, it is important to have double precision. Thus, I have just committed the change to PLStream.java to use libplplotd rather than libplplot. This is just a temporary convenience for my tests and will presumably be superseded by Geoffrey's eventual configuration change to deal with this issue. I have just changed x08.java and x11.java following the casts from integer in the C code (see comments below in the context of Geoffrey's comments). The result is these java examples now produce identical results to x08c and x11c. This means that at least for this subset of the java plplot API, it appears with-double is working. Now I have these two java examples giving consistent results with the C examples, I intend to sytematically check all java example results against their C example counterparts. Alan email: ir...@be... phone: 250-727-2902 FAX: 250-721-7715 snail-mail: Dr. Alan W. Irwin Department of Physics and Astronomy, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada, V8W 3P6 __________________________ Linux-powered astrophysics __________________________ On Fri, 26 Oct 2001, Geoffrey Furnish wrote: > I confess to finding such matters > confusing in the C case. What does the C (double) cast do? Is that > an integer division the result of which is then cast to double? That's my understanding. > In > which case I wouldn't expect hte abscissa to be smooth. I agree they are not completely smooth, but the degree of non-smoothness is so low it does not detract from the plot. > Think you can figure it out? Done, see above. Alan |