Ticket #6192: trac_6192.patch

File trac_6192.patch, 1.2 KB (added by was, 13 years ago)
  • sage/calculus/calculus.py

    # HG changeset patch
    # User wstein@cicero.sagenet.site
    # Date 1243980223 14400
    # Node ID ee6930d6fe0c183b9d3a28140e253f3f7b0fa9cd
    # Parent  f77ae09d3d24458409f0431fe7d06d7c250d1f41
    trac #6192 -- numerical noise on x86 fedora core 8 (cicero on skynet)
    
    diff -r f77ae09d3d24 -r ee6930d6fe0c sage/calculus/calculus.py
    a b  
    698698    ::
    699699
    700700        sage: numerical_integral(f, 0, 1)
    701         (0.52848223225314706, 6.8392846084921134e-07)
     701        (0.52848223225314706, 6.83928460...e-07)
    702702
    703703    Note that in exotic cases where floating point evaluation of the
    704704    expression leads to the wrong value, then the output can be
  • sage/rings/number_field/number_field_element.pyx

    diff -r f77ae09d3d24 -r ee6930d6fe0c sage/rings/number_field/number_field_element.pyx
    a b  
    763763        EXAMPLES::
    764764
    765765            sage: k.<a> = NumberField(x^2 + 1)
    766             sage: CDF(a)
    767             1.0*I
     766            sage: abs(CDF(a))
     767            1.0
    768768        """
    769769        return CDF(self.complex_embedding())
    770770