[sage-devel] Improving rescaling of matrices

2008-06-02 Thread kcrisman
Referring to http://trac.sagemath.org/sage_trac/ticket/3212, I have to do a little cleaning up before submitting it for review, but have some code for allowing rescaling of matrices by logical scalars not in the base ring. However, in order to do this, I need to return a copy, not modify the

[sage-devel] Re: Improving rescaling of matrices

2008-06-02 Thread Jason Grout
kcrisman wrote: Referring to http://trac.sagemath.org/sage_trac/ticket/3212, I have to do a little cleaning up before submitting it for review, but have some code for allowing rescaling of matrices by logical scalars not in the base ring. However, in order to do this, I need to return a

[sage-devel] Re: coercing of log(2)*1.0

2008-06-02 Thread William Stein
On Mon, Jun 2, 2008 at 9:45 AM, Carl Witty [EMAIL PROTECTED] wrote: On Jun 2, 9:17 am, William Stein [EMAIL PROTECTED] wrote: On Mon, Jun 2, 2008 at 1:30 AM, Henryk Trappmann But back to SymbolicRing and SymbolicConstant. I have the following improvement SUGGESTION: when creating sqrt(2)

[sage-devel] Re: coercing of log(2)*1.0

2008-06-02 Thread Carl Witty
On Jun 2, 9:17 am, William Stein [EMAIL PROTECTED] wrote: On Mon, Jun 2, 2008 at 1:30 AM, Henryk Trappmann But back to SymbolicRing and SymbolicConstant. I have the following improvement SUGGESTION: when creating sqrt(2) or other roots from integers, then assign to them the parent

[sage-devel] hi

2008-06-02 Thread William Stein
Dear friend: we are an electronical wholesale company which locates in China,we have lots of good products with high quality and low price; such as digital cameras, mobile, LCD TV, Laptops Notebooks, Digital Video, Mp4, GPS, and so on. In order to gratulate Olympic Games of 2008 in Beijing,

[sage-devel] Re: Improving rescaling of matrices

2008-06-02 Thread William Stein
On Mon, Jun 2, 2008 at 7:17 AM, Jason Grout [EMAIL PROTECTED] wrote: kcrisman wrote: Referring to http://trac.sagemath.org/sage_trac/ticket/3212, I have to do a little cleaning up before submitting it for review, but have some code for allowing rescaling of matrices by logical scalars not in

[sage-devel] hi again

2008-06-02 Thread William Stein
Hello. The last email you just received from me was in fact from a spammer impersonating my email account. I'm sorry for any inconvenience this may cause. -- William -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org

[sage-devel] Re: log vs log_b

2008-06-02 Thread Robert Bradshaw
On Jun 1, 2008, at 2:13 AM, Martin Albrecht wrote: I didn't even know there was a log_b, so I would be *very* happy to delete it. -- William They are not the same: sage: log_b(10,2) 3.32192809489 sage: log(10,2) log(10)/log(2) but log(10,2).n() is. I don't think we need a

[sage-devel] Re: New Sage website

2008-06-02 Thread Robert Bradshaw
On May 31, 2008, at 8:45 AM, Andrey Novoseltsev wrote: I looked at the new site the second time and liked it much more! Me too, even better than last time. Some other ideas/comments: 1) I think that the main page would look better if Our mission is in bold and starts a separate paragraph.

[sage-devel] quantitative finance in sage

2008-06-02 Thread William Stein
Hi, I've posted a first very very (very) minimal quantitative finance piece of code here: http://trac.sagemath.org/sage_trac/ticket/3346 I hope somebody who has some interest in this area will referee it. -- William -- William Stein Associate Professor of Mathematics University

[sage-devel] Re: coercing of log(2)*1.0

2008-06-02 Thread Robert Bradshaw
On Jun 2, 2008, at 9:47 AM, William Stein wrote: On Mon, Jun 2, 2008 at 9:45 AM, Carl Witty [EMAIL PROTECTED] wrote: On Jun 2, 9:17 am, William Stein [EMAIL PROTECTED] wrote: On Mon, Jun 2, 2008 at 1:30 AM, Henryk Trappmann But back to SymbolicRing and SymbolicConstant. I have the

[sage-devel] Re: New Sage website

2008-06-02 Thread Harald Schilly
Hi, just some short comments by me, since I'm responsible ;) On Jun 2, 7:58 pm, Robert Bradshaw [EMAIL PROTECTED] wrote: On May 31, 2008, at 8:45 AM, Andrey Novoseltsev wrote: Also, I think it might be better for the text to be left- justified (but still centered in the page). Yeahr, well,

[sage-devel] Re: quantitative finance in sage

2008-06-02 Thread Harald Schilly
On Jun 2, 7:46 pm, William Stein [EMAIL PROTECTED] wrote: Hi, I've posted a first very very (very) minimal quantitative finance piece of code here: I have briefly looked at the code and I'm curious: How significant is the speed difference between R, using an ts() object and fSeries, and

[sage-devel] Re: quantitative finance in sage

2008-06-02 Thread William Stein
On Mon, Jun 2, 2008 at 12:02 PM, Harald Schilly [EMAIL PROTECTED] wrote: On Jun 2, 7:46 pm, William Stein [EMAIL PROTECTED] wrote: Hi, I've posted a first very very (very) minimal quantitative finance piece of code here: I have briefly looked at the code and I'm curious: How significant

[sage-devel] vfplot

2008-06-02 Thread Jaap Spies
For who is interested: http://sview01.wiredworkplace.net/pub/vfplot/ Jaap --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group

[sage-devel] Re: New Sage website

2008-06-02 Thread Robert Bradshaw
On Jun 2, 2008, at 11:44 AM, Harald Schilly wrote: Hi, just some short comments by me, since I'm responsible ;) On Jun 2, 7:58 pm, Robert Bradshaw [EMAIL PROTECTED] wrote: On May 31, 2008, at 8:45 AM, Andrey Novoseltsev wrote: Also, I think it might be better for the text to be left-

[sage-devel] Re: log vs log_b

2008-06-02 Thread Gary Furnish
We could easily change this so that we by default go ahead and coerce the log(10) to RR if its multiplied by something in RR. (so that we end up with a numeric result). This is probably a good idea. On Mon, Jun 2, 2008 at 12:05 PM, Robert Bradshaw [EMAIL PROTECTED] wrote: On Jun 1, 2008, at

[sage-devel] Re: coercing of log(2)*1.0

2008-06-02 Thread William Stein
On Mon, Jun 2, 2008 at 12:53 PM, Gary Furnish [EMAIL PROTECTED] wrote: -1. First, everything cwitty said is correct. Second, if we start using ZZ[sqrt(2)] and ZZ[sqrt(3)], then sqrt(2)+sqrt(3) requires going through the coercion system which was designed to be elegant instead of fast, so

[sage-devel] Re: vfplot

2008-06-02 Thread William Stein
On Mon, Jun 2, 2008 at 12:13 PM, Jaap Spies [EMAIL PROTECTED] wrote: For who is interested: http://sview01.wiredworkplace.net/pub/vfplot/ What is it? Have *you* tried it? Did you like it or not? How do you think it might be relevant to Sage? William

[sage-devel] Re: coercing of log(2)*1.0

2008-06-02 Thread Gary Furnish
-1. First, everything cwitty said is correct. Second, if we start using ZZ[sqrt(2)] and ZZ[sqrt(3)], then sqrt(2)+sqrt(3) requires going through the coercion system which was designed to be elegant instead of fast, so this becomes insanely slow for any serious use. Finally, this is going to

[sage-devel] Re: vfplot

2008-06-02 Thread Jaap Spies
William Stein wrote: On Mon, Jun 2, 2008 at 12:13 PM, Jaap Spies [EMAIL PROTECTED] wrote: For who is interested: http://sview01.wiredworkplace.net/pub/vfplot/ What is it? Have *you* tried it? Did you like it or not? How do you think it might be relevant to Sage? No, I did not try

[sage-devel] Re: Improving rescaling of matrices

2008-06-02 Thread kcrisman
Maybe rescale_row and rescale_col should retain their current semantics, and we should have new methods with_rescaled_row and with_rescaled_col that always return a modified copy and never modify the original.  Then rescale_row and rescale_col could catch the type error from #3212, and

[sage-devel] Re: New Sage website

2008-06-02 Thread Francesco Biscani
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi William, William Stein wrote: | That said I really *really* want a full native version of Sage on Windows... I've been wondering about this for a while. Are you referring specifically to MSVC support or it gets compiled natively under windows

[sage-devel] Re: New Sage website

2008-06-02 Thread mabshoff
On Jun 2, 11:11 pm, Francesco Biscani [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi William, Hi Francesco, William Stein wrote: | That said I really *really* want a full native version of Sage on Windows... I've been wondering about this for a while. Are

[sage-devel] Re: New Sage website

2008-06-02 Thread Daniel Black
On May 14, 12:11 am, William Stein [EMAIL PROTECTED] wrote: On Tue, May 13, 2008 at 8:50 PM, Andrey Novoseltsev [EMAIL PROTECTED] wrote: 1) I think that completely white background would be the best. I would love to see what this looks like. Using the Web Developer extension for FF

[sage-devel] Re: New Sage website

2008-06-02 Thread Francesco Biscani
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Michael, mabshoff wrote: | For 32 bits we are fixing the Cygwin issues and one goal for Dev1 | [starting in a little less than two weeks] is to get that port up and | working again. MinGW's support for Python is allegedly problematic, at | least

[sage-devel] Re: coercing of log(2)*1.0

2008-06-02 Thread John Cremona
2008/6/2 William Stein [EMAIL PROTECTED]: On Mon, Jun 2, 2008 at 12:53 PM, Gary Furnish [EMAIL PROTECTED] wrote: -1. First, everything cwitty said is correct. Second, if we start using ZZ[sqrt(2)] and ZZ[sqrt(3)], then sqrt(2)+sqrt(3) requires going through the coercion system which was

[sage-devel] Re: quantitative finance in sage

2008-06-02 Thread Pablo De Napoli
There is a free library for quantitaive finance called quantlib http://quantlib.org/ The library is writen in C++ but comes with python bindings. The licence is modified BSD (http://quantlib.org/license.shtml) (wich is GPL-compatible) Perhaps you might want to integrate it into sage The more

[sage-devel] Re: New Sage website

2008-06-02 Thread mabshoff
On Jun 2, 11:51 pm, Francesco Biscani [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Michael, Hi Francesco, mabshoff wrote: | For 32 bits we are fixing the Cygwin issues and one goal for Dev1 | [starting in a little less than two weeks] is to get that port up

[sage-devel] Re: coercing of log(2)*1.0

2008-06-02 Thread William Stein
On Mon, Jun 2, 2008 at 3:19 PM, John Cremona [EMAIL PROTECTED] wrote: 2008/6/2 William Stein [EMAIL PROTECTED]: On Mon, Jun 2, 2008 at 12:53 PM, Gary Furnish [EMAIL PROTECTED] wrote: -1. First, everything cwitty said is correct. Second, if we start using ZZ[sqrt(2)] and ZZ[sqrt(3)], then

[sage-devel] Re: coercing of log(2)*1.0

2008-06-02 Thread Gonzalo Tornaria
On 6/2/08, William Stein [EMAIL PROTECTED] wrote: Doing that sum works fine now. It's even fun. That all the following work fine even with our current system says something... sage: a = sum([sqrt(p) for p in primes(1000)]) sage: float(a) 3307.7690992952139 sage: RDF(a)

[sage-devel] Re: coercing of log(2)*1.0

2008-06-02 Thread Gonzalo Tornaria
BTW, if I change the iteration limit to 250 or more, I get a type 'exceptions.RuntimeError': maximum recursion depth exceeded when evaluating float(a)... (sage 3.0) Gonzalo On 6/2/08, Gonzalo Tornaria [EMAIL PROTECTED] wrote: On 6/2/08, William Stein [EMAIL PROTECTED] wrote: Doing that

[sage-devel] Re: coercing of log(2)*1.0

2008-06-02 Thread William Stein
On Mon, Jun 2, 2008 at 5:15 PM, Gonzalo Tornaria [EMAIL PROTECTED] wrote: On 6/2/08, William Stein [EMAIL PROTECTED] wrote: Doing that sum works fine now. It's even fun. That all the following work fine even with our current system says something... sage: a = sum([sqrt(p) for p in

[sage-devel] Re: coercing of log(2)*1.0

2008-06-02 Thread Gonzalo Tornaria
On 6/2/08, William Stein [EMAIL PROTECTED] wrote: sage: a = e - 1 sage: for i in range(2,200): : a = (a-1)*i : sage: float(a) -inf joke Oh my god, floating point numbers are just broken! /joke :-) Seriously, floating point numbers are what they are. Fair

[sage-devel] Re: [Maxima] [sage-devel] Re: Maxima license GPL v.3 or later?

2008-06-02 Thread Robert Dodier
On 6/1/08, Andrej Vodopivec [EMAIL PROTECTED] wrote: As I have mentioned in some other thread, even if most of the code is GPLv2+, there are files which are GPLv2 only: Yeah -- some of those are files which I created. I am willing to change those from GPL v2 to GPL nonspecific. About the

[sage-devel] Re: Trying to extend Integer

2008-06-02 Thread William Stein
On Mon, Jun 2, 2008 at 9:51 PM, Igor Tolkov [EMAIL PROTECTED] wrote: I am trying to extend the integer class: {{ class Quple(Integer): def __init__(self, a, b): Integer.__init__(self, b) self.tup = (a, b) print Quple(3,1) /// 0 }}} I should get 1. I stared at

[sage-devel] Re: Trying to extend Integer

2008-06-02 Thread Robert Bradshaw
On Jun 2, 2008, at 10:18 PM, William Stein wrote: On Mon, Jun 2, 2008 at 10:15 PM, Robert Bradshaw [EMAIL PROTECTED] wrote: On Jun 2, 2008, at 9:51 PM, Igor Tolkov wrote: I am trying to extend the integer class: {{ class Quple(Integer): def __init__(self, a, b):

[sage-devel] Re: Trying to extend Integer

2008-06-02 Thread William Stein
On Mon, Jun 2, 2008 at 10:30 PM, Robert Bradshaw [EMAIL PROTECTED] wrote: On Jun 2, 2008, at 10:18 PM, William Stein wrote: On Mon, Jun 2, 2008 at 10:15 PM, Robert Bradshaw [EMAIL PROTECTED] wrote: On Jun 2, 2008, at 9:51 PM, Igor Tolkov wrote: I am trying to extend the integer class:

[sage-devel] Re: Trying to extend Integer

2008-06-02 Thread root
sage: class foo: ... def __init__(self, a): ... self.b = a sage: f = foo(10) sage: f.b 10 sage: f.__init__(20) sage: f.b 20 Well Sage hasn't exploded already because of this, so I guess we'll just have to live with it. Excellent. Now we can inflate integers to match the dollar

[sage-devel] Re: coercing of log(2)*1.0

2008-06-02 Thread Robert Bradshaw
On Jun 2, 2008, at 12:55 PM, William Stein wrote: On Mon, Jun 2, 2008 at 12:53 PM, Gary Furnish [EMAIL PROTECTED] wrote: -1. First, everything cwitty said is correct. More on this below. Second, if we start using ZZ[sqrt(2)] and ZZ[sqrt(3)], then sqrt(2)+sqrt(3) requires going