#9130: Access to beta function
---------------------------+------------------------------------------------
   Reporter:  kcrisman     |          Owner:  burcin                      
       Type:  enhancement  |         Status:  needs_work                  
   Priority:  major        |      Milestone:  sage-4.7.1                  
  Component:  symbolics    |       Keywords:  special function, pynac     
Work_issues:               |       Upstream:  N/A                         
   Reviewer:               |         Author:  Karen T. Kohl, Burcin Erocal
     Merged:               |   Dependencies:                              
---------------------------+------------------------------------------------
Changes (by newvalueoldvalue):

  * keywords:  special function, pynac, beginner => special function, pynac
  * milestone:  sage-5.0 => sage-4.7.1
  * author:  => Karen T. Kohl, Burcin Erocal


Comment:

 Hi Karen,

 sorry for taking so long to look at this. It seems that I forgot to check
 for a NULL pointer in `py_float()`.
 attachment:trac_9130-py_float_segfault.patch fixes the segfault.

 {{{
 sage: from sage.functions.other import beta
 sage: beta(3,2.0)
 0.0833333333333333
 }}}

 Will you have time to finish the patch?

 You need to add an import statement to `sage/functions/all.py` so `beta`
 is available at the command line.  The documentation also needs some care.
 IIRC there should be an empty line after `INPUT`, `OUTPUT` and `EXAMPLES`.
 The statement

 {{{
         It is computed by various libraries within Sage, depending on
         the input type.
 }}}

 is too vague. We should either remove it or explain how GiNaC evaluates
 this (see `beta_eval()` and `beta_evalf()` in
 
[https://bitbucket.org/burcin/pynac/src/51619d2eb90f/ginac/inifcns_gamma.cpp#cl-249
 inifcns_gamma.cpp]).

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9130#comment:8>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to