[sage-support] find smallest integer to meet certain inequalities...

2008-01-21 Thread Georg
Hi, is there an efficient way in sage to find the smallest integer k to meet (b constant) b^(k+1) / (factorial(k) * factorial(k+1)) = 1 and b^k / factorial(k) =1 or, more generally (b, c, d positive constants, c d) b^k / (factorial(k) * (k + c - d)^d) = 1 many thanks in advance, Georg

[sage-support] Bar graphs

2008-01-21 Thread David Kohel
Apologies if this is double-sent; I thought I sent it already but don't find the submission. Suppose I have a discrete function, as at the bottom (in this case a frequency distribution). Does anyone have a good example for producing a bar graph? Ideally I would like both latex and some

[sage-support] Re: Bar graphs

2008-01-21 Thread David Joyner
This question was just asked by someone else on sage-newbie. In gsl/dft.py there is a plot_histrogram function. Other people suggested other options in the htread though. On Jan 21, 2008 10:43 AM, David Kohel [EMAIL PROTECTED] wrote: Apologies if this is double-sent; I thought I sent it

[sage-support] Re: find smallest integer to meet certain inequalities...

2008-01-21 Thread Georg
Excuse me, i'm not a native english speaker (and i thought i read this mode of speaking somewhere before): is there an efficient way in sage to find the smallest integer k for which the inequality b^(k+1) / (factorial(k) * factorial(k+1)) = 1 is true (b 0) similarly for b^k / factorial(k)

[sage-support] Re: find smallest integer to meet certain inequalities...

2008-01-21 Thread Paul Zimmermann
Georg, is there an efficient way in sage to find the smallest integer k for which the inequality b^(k+1) / (factorial(k) * factorial(k+1)) = 1 is true (b 0) Stirling's expansion gives (when b goes to infinity) k ~ sqrt(b)*exp(1). Thus it suffices to evaluates f(k) = b^(k+1) /

[sage-support] Re: find smallest integer to meet certain inequalities...

2008-01-21 Thread Georg
Oh yeah, that's a usefull hint, thank you very much Paul, Georg --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at

[sage-support] Re: File Functions and Win path

2008-01-21 Thread mabshoff
On Jan 18, 6:42 pm, mark h [EMAIL PROTECTED] wrote: i want to write some actuarial specifications in Sage. i want to create test cases in external files, so that they can also be used for the implementation testing. can i read/write data from external files ? can Sage process text ? Yes

[sage-support] Re: audio processing

2008-01-21 Thread Hector
Sorry for replying my own email, but I just started tinkering with Python's wave module: http://docs.python.org/lib/module-wave.html I'll try to report my progress. Best, -- Hector On Jan 21, 8:43 pm, Hector Villafuerte [EMAIL PROTECTED] wrote: Hi, I'm planning on using SAGE for some digital

[sage-support] Re: audio processing

2008-01-21 Thread William Stein
On Jan 21, 2008 8:32 PM, Hector [EMAIL PROTECTED] wrote: Sorry for replying my own email, but I just started tinkering with Python's wave module: http://docs.python.org/lib/module-wave.html I'll try to report my progress. Best, Sage also has some wav processing support that is built on