ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* sagemath in context
@ 2009-04-28 12:38 curiouslearn
  2009-04-28 14:09 ` Yue Wang
  2009-04-28 16:19 ` Aditya Mahajan
  0 siblings, 2 replies; 4+ messages in thread
From: curiouslearn @ 2009-04-28 12:38 UTC (permalink / raw)
  To: ntg-context

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? It would be really
cool if this functionality is added to Context. 

What do the experts here think?

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: sagemath in context
  2009-04-28 12:38 sagemath in context curiouslearn
@ 2009-04-28 14:09 ` Yue Wang
  2009-04-28 16:19 ` Aditya Mahajan
  1 sibling, 0 replies; 4+ messages in thread
From: Yue Wang @ 2009-04-28 14:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

This is a very small package, and it is not heavily dependent on LaTeX.
So the ConTeXt module will be easy to write. (it is quite like the
gnuplot context module)
You can write your own and submit that to CTAN.

Yue Wang

On Tue, Apr 28, 2009 at 8:38 PM, curiouslearn <curiouslearn@gmail.com> 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? It would be really
> cool if this functionality is added to Context.
>
> What do the experts here think?
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: sagemath in context
  2009-04-28 12:38 sagemath in context curiouslearn
  2009-04-28 14:09 ` Yue Wang
@ 2009-04-28 16:19 ` Aditya Mahajan
  2009-04-28 23:43   ` curiouslearn
  1 sibling, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2009-04-28 16:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: sagemath in context
  2009-04-28 16:19 ` Aditya Mahajan
@ 2009-04-28 23:43   ` curiouslearn
  0 siblings, 0 replies; 4+ messages in thread
From: curiouslearn @ 2009-04-28 23:43 UTC (permalink / raw)
  To: ntg-context

I will look at the packages you have suggested. But I have basically no
knowledge of writing such packages and was hoping that someone here with the
capability of writing such packages would be interested and would take it up,
especially given that it is not very difficult. Especially, given that people
have done this for 'R' and 'gnuplot'. Sage has all the capabilities of these two
and much more. If people have written modules for these, I am sure a lot more
people will find the sage module useful.


Aditya, I think you are correct that the conversion in case of the matrix
example is done by sage and as you said, changes would have to be made to sage
to yield Context code rather than latex code. 

Thanks.

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-28 23:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-28 12:38 sagemath in context curiouslearn
2009-04-28 14:09 ` Yue Wang
2009-04-28 16:19 ` Aditya Mahajan
2009-04-28 23:43   ` curiouslearn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).