From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49875 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: sagemath in context Date: Tue, 28 Apr 2009 12:19:28 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240935647 18713 80.91.229.12 (28 Apr 2009 16:20:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Apr 2009 16:20:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 28 18:20:38 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1Lyq2v-0002rJ-Fk for gctc-ntg-context-518@m.gmane.org; Tue, 28 Apr 2009 18:20:37 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E65DC1FC6B; Tue, 28 Apr 2009 18:20:36 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16192-02; Tue, 28 Apr 2009 18:20:01 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AF8AF1FC1B; Tue, 28 Apr 2009 18:20:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 093D61FC1B for ; Tue, 28 Apr 2009 18:20:00 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01364-06-2 for ; Tue, 28 Apr 2009 18:19:51 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by ronja.ntg.nl (Postfix) with ESMTP id 7D9101FC14 for ; Tue, 28 Apr 2009 18:19:51 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter4-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n3SGJnOm012540 for ; Tue, 28 Apr 2009 18:19:50 +0200 Original-Received: FROM [192.168.2.8] (c-76-127-178-8.hsd1.ct.comcast.net [76.127.178.8]) By hackers.mr.itd.umich.edu ID 49F72CA4.433BD.9429 ; Authuser adityam; 28 Apr 2009 12:19:48 EDT In-Reply-To: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 216278086 - c0b754555e5c - 20090428 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:49875 Archived-At: On Tue, 28 Apr 2009, curiouslearn wrote: > Hi, > > I know that Context is developing rapidly and the top guys here are all very > busy with these development efforts. But I thought I would just float this idea. > > There is an open source mathematics software system called sagemath which aims > to be a viable substitute to Mathematica and Maple. The link is > > http://www.sagemath.org/ > > There exists a latex package called sagetex, which allows using sagemath > functions from within latex. The following link on ctan has some examples > > http://www.ctan.org/tex-archive/macros/latex/contrib/sagetex/ > > Do you think it is possible to do a similar thing in Context? Have a look at the r module in the distribtuion, m-r.tex. It does something similar, but uses R instead on sage. It should be possible to copy code from there and translate it for sage. > It would be really > cool if this functionality is added to Context. Simple things like multiplication and basic algebra can be done using calcmath. See, for example, http://www.tug.org/pipermail/tugindia/2008-December/004714.html But we should not write a CAS in lua. There are plenty of good ones out there. > What do the experts here think? How much does it rely on SAGE. For example, one the examples in the manual says that \sage{matrix([1,2], [3,4])^2} is converted into a \begin{array} ... \end{array} block. Most likely, this conversion is done by sage. Is it possible to change a few functions in sage so that the output is in ConTeXt syntax? Regarding graphics, gnuplot tries hard to ensure that document fonts are used in plots. I don't know how easy it is to do such things with sage and R. Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________