Ticket #9693: 9693-asinh-1.0-to-asinh-2.0.patch

File 9693-asinh-1.0-to-asinh-2.0.patch, 1001 bytes (added by drkirkby, 11 years ago)

Mercurial patch which changes computing asinh(1.0) to asinh(2.0)

  • sage/symbolic/expression.pyx

    # HG changeset patch
    # User David Kirkby <david.kirkby@onetel.net>
    # Date 1282189796 -3600
    # Node ID 641a85f796e3019b0713da357540b3f675f89c55
    # Parent  f77808909c540fff2ad614693a7825695860ab74
    #9693 Change computing asinh(1.0) to asinh(2.0) in a doc test, as the result (1.44363547517881) is greater than 1.0. Sometimes, a leading zero was not printed when computing asinh(1.0), where .8813735870195429 was printed instead of 0.881373587019543
    
    diff -r f77808909c54 -r 641a85f796e3 sage/symbolic/expression.pyx
    a b  
    50855085            arcsinh(1)
    50865086            sage: SR(1.0).arcsinh()
    50875087            0.881373587019543
    5088             sage: maxima('asinh(1.0)')
    5089             0.881373587019543
     5088            sage: maxima('asinh(2.0)')
     5089            1.44363547517881
    50905090
    50915091        Sage automatically applies certain identities::
    50925092            sage: SR(3/2).arcsinh().cosh()