Re: [sage-support] Chinese Remainder Theorem

2011-09-22 Thread Santanu Sarkar
Thank you.

On 23 September 2011 10:38, D. S. McNeil  wrote:

> On Fri, Sep 23, 2011 at 12:39 AM, Santanu Sarkar
>  wrote:
> > I want to find integer such that
> > x= 1 mod 3
> > x=2  mod 5
> > x=3  mod 7
> > like this system of congruences using Chinese Remainder Theorem.
> > In Sage, crt() function takes only 4 argument.
>
> sage: help(CRT)
>
> crt(a, b, m=None, n=None)
>Returns a solution to a Chinese Remainder Theorem problem.
>
>INPUT:
>
>- ``a``, ``b`` - two residues (elements of some ring for which
>  extended gcd is available), or two lists, one of residues and
>  one of moduli.
> [...]
>
>If ``a`` and ``b`` are lists, returns a simultaneous solution to
>the congruences `x\equiv a_i\pmod{b_i}`, if one exists.
>
>.. SEEALSO::
>
>- :func:`CRT_list`
>
>
> sage: CRT([1,2,3],[3,5,7])
> 52
> sage: x = CRT([1,2,3],[3,5,7])
> sage: x % 3, x % 5, x % 7
> (1, 2, 3)
>
>
> Doug
>
> --
> To post to this group, send email to sage-support@googlegroups.com
> To unsubscribe from this group, send email to
> sage-support+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org
>

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Chinese Remainder Theorem

2011-09-22 Thread D. S. McNeil
On Fri, Sep 23, 2011 at 12:39 AM, Santanu Sarkar
 wrote:
> I want to find integer such that
> x= 1 mod 3
> x=2  mod 5
> x=3  mod 7
> like this system of congruences using Chinese Remainder Theorem.
> In Sage, crt() function takes only 4 argument.

sage: help(CRT)

crt(a, b, m=None, n=None)
Returns a solution to a Chinese Remainder Theorem problem.

INPUT:

- ``a``, ``b`` - two residues (elements of some ring for which
  extended gcd is available), or two lists, one of residues and
  one of moduli.
[...]

If ``a`` and ``b`` are lists, returns a simultaneous solution to
the congruences `x\equiv a_i\pmod{b_i}`, if one exists.

.. SEEALSO::

- :func:`CRT_list`


sage: CRT([1,2,3],[3,5,7])
52
sage: x = CRT([1,2,3],[3,5,7])
sage: x % 3, x % 5, x % 7
(1, 2, 3)


Doug

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Chinese Remainder Theorem

2011-09-22 Thread Santanu Sarkar
I want to find integer such that
x= 1 mod 3
x=2  mod 5
x=3  mod 7
like this system of congruences using Chinese Remainder Theorem.
In Sage, crt() function takes only 4 argument.

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: where to put Sage

2011-09-22 Thread Volker Braun
Maybe I'm biased :-) but I think the VirtualBox appliance is a great way to 
get to know Sage and for students. 

But if you want to actively develop for Sage then I would recommend to run 
on Unix natively. In principle you can do everything in a virtual machine 
but its a bit like learning a language: total immersion works best.


-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: where to put Sage

2011-09-22 Thread D. M. Monarres
It is interesting that nobody recommended using the official way of
installing Sage on windows, by using the virtual box images provided
on the website.

I have run into the problem of how to recommend Sage to students who
will mostly be running windows machines. Still looks like running Sage
on windows is kind of  awkward. Has there been any progress on the
mammoth task of porting Sage to windows?

Regards,

David M. Monarres




On Wed, Sep 21, 2011 at 12:31 PM, kcrisman  wrote:
>> I'd say that if you really want to develop Sage with your students on a
>> joint computer then you need to have direct access to a Linux machine. Its
>
> Or a Mac, if you set up ssh availability or whatever - # 7, Maarten
> says so.  But see # 3,4.
>
>
>> What solution is best for you really depends on how much you expect sage
>> will get used. I definitly advise you to have your own sage notebook server
>> running somewhere. And it would be best if that place was accesible from the
>> WWW so student can also use it from home.
>
> +1 very good idea.
>
>> (3,4) It would not be a large imposition on computer science since sage can
>> be installed without root acces they can just give you an account and the
>> possibility to run a web service. You or one of your students could then
>> install sage yourself, even installing non standard spkgs as you please.
>
> Yes, totally do this.  We have this and it works great.
>
> --
> To post to this group, send email to sage-support@googlegroups.com
> To unsubscribe from this group, send email to 
> sage-support+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org
>

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Questions about 3d plotting

2011-09-22 Thread Dox
Hi everyone!

I have been plotting an array as a contour plot using

p = Graphics()
import csv
data1 = [row for row in csv.reader(open('Vp-Mod-n:1.dat'), delimiter='\t')]
p += list_plot(data1, size=3)
p.show(viewer='tachyon')

and it works alright. However, I'd like:

   - Change the camera position. I've seen that it's possible when Jmol is 
   used as viewer, however Jmol sometimes crashes my browsers (firefox, 
   chromium, seamonkey, etc.)
   - Adding label to the axes. I tried to insert text3d and doesn't work.
   - Text3d in Jmol: even if I am stubborn and try to plot my arrays in 
   Jmol, the text3d for labeling the axes stands on the axes, What can I do for 
   the text to be outside the plot frame?
   - Finally, Can the figures be exported as PDF? So far I can export them 
   as JPEG.
   
Thank you all!

DOX.

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Fwd: Problem with reporting Sage problems!

2011-09-22 Thread David Joyner
I sent him an invite.


On Thu, Sep 22, 2011 at 5:04 AM, William Stein  wrote:
> Hi Sage-support,
>
> Can somebody email this guy?  Thanks.
>
> William
>
>
> -- Forwarded message --
> From: Anthony Wickstead 
> Date: Thu, Sep 22, 2011 at 1:59 AM
> Subject: Problem with reporting Sage problems!
> To: "wst...@gmail.com" 
> Cc: Anthony Wickstead 
>
>
> Sorry to bother you personally about this, but I don’t know how else
> to proceed. I have been trying out Sage for a couple of weeks and have
> found a few problems that I have tried to report. The latest concerns
> the failure of fricas to install. I have tried to email the report to
>
> sage-de...@googlegroups.com
>
> but my message has been bounced back with the comment:
>
>
>
> -
>
> We're writing to let you know that the group you tried to contact
> (sage-devel) may not exist, or you may not have permission to post
> messages to the group. A few more details on why you weren't able to
> post:
>
>
>
> * You might have spelled or formatted the group name incorrectly.
>
> * The owner of the group may have removed this group.
>
> * You may need to join the group before receiving permission to post.
>
> * This group may not be open to posting.
>
>
>
> I did try to join the group a week or so ago to report a documentation
> problem (the PDF version of the reference manual has lines – mainly
> code - in the chapter on 3D plots that are too long) , but evidently
> whoever reads requests to join decided that I wasn’t human!
>
>
>
> Hope that you can help,
>
>
>
> Tony Wickstead
>
>
>
> Prof. A.W. Wickstead
>
> Pure Mathematics Research Centre
>
> Queen's University Belfast
>
> University Road
>
> Belfast BT7 1NN
>
> Northern Ireland
>
> Phone: 028 90976004
>
> Fax: 028 90976060
>
>
>
>
> --
> William Stein
> Professor of Mathematics
> University of Washington
> http://wstein.org
>
> --
> To post to this group, send email to sage-support@googlegroups.com
> To unsubscribe from this group, send email to 
> sage-support+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org
>

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Fwd: Problem with reporting Sage problems!

2011-09-22 Thread William Stein
Hi Sage-support,

Can somebody email this guy?  Thanks.

William


-- Forwarded message --
From: Anthony Wickstead 
Date: Thu, Sep 22, 2011 at 1:59 AM
Subject: Problem with reporting Sage problems!
To: "wst...@gmail.com" 
Cc: Anthony Wickstead 


Sorry to bother you personally about this, but I don’t know how else
to proceed. I have been trying out Sage for a couple of weeks and have
found a few problems that I have tried to report. The latest concerns
the failure of fricas to install. I have tried to email the report to

sage-de...@googlegroups.com

but my message has been bounced back with the comment:



-

We're writing to let you know that the group you tried to contact
(sage-devel) may not exist, or you may not have permission to post
messages to the group. A few more details on why you weren't able to
post:



* You might have spelled or formatted the group name incorrectly.

* The owner of the group may have removed this group.

* You may need to join the group before receiving permission to post.

* This group may not be open to posting.



I did try to join the group a week or so ago to report a documentation
problem (the PDF version of the reference manual has lines – mainly
code - in the chapter on 3D plots that are too long) , but evidently
whoever reads requests to join decided that I wasn’t human!



Hope that you can help,



Tony Wickstead



Prof. A.W. Wickstead

Pure Mathematics Research Centre

Queen's University Belfast

University Road

Belfast BT7 1NN

Northern Ireland

Phone: 028 90976004

Fax: 028 90976060




-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org