Valery Pipin | 2 Jun 2004 16:05
Picon

Re: TeXmacs-Maxima interface

On Saturday 29 May 2004 08:51, Andrej Grozin wrote:
| Hello *,
|
| Recent changes in cvs maxima made both the old interface (included with
| TeXmacs) and the new one (which I sent to the mailing list a while ago)
| unusable.
|
| Please test the included interface:
| tm_maxima                   goes to /usr/libexec/TeXmacs/bin/
| texmacs-maxima-5.9.1.lisp   goes to /usr/share/TeXmacs/plugins/maxima/lisp/
|
| If it works OK, we'll incorporate in into TeXmacs. When Maxima-5.9.1 will
| be released, only a single line in tm_maxima will change.
I met one problem with it.
The tensor demo "ten_alg.dem", which runs well on console, breaks within 
texmacs with lisp error at (%i91). Note to display the tensors with dummy 
indices inside texmacs  you shoud change the difinition of dummyx from '% to 
some literal notation, say dummyx:n.

Valery 
Kamaraju Kusumanchi | 2 Jun 2004 20:45
Picon
Favicon

trigonometric summation in maxima

Hi all
   I am interested in evaluating summation involving trigonometric terms 
using maxima. For example

sum(cos(j/N), j, 1, N)

Maxima does not give the simplified answer but gives expression 
involving summation sign. How to get the simplified result?

I read the manual and came across simpsum : true flag. But this does not 
simplify the above expression. simpsum : true works only for Riemann 
kind of sums.

Any ideas how to extend the sum function to trignometric terms also?

thanks
raju

--

-- 
Home page: http://www.people.cornell.edu/pages/kk288/index.html
Fluid's group: http://groups.yahoo.com/group/flumech/
Milan Lukic | 3 Jun 2004 00:55

Re: trigonometric summation in maxima

Have you tried
  realpart(nusum(%i*j*x,j,1,N));
	
Milan

Kamaraju Kusumanchi [02/06/04 14:45 -0400]:
> Hi all
>   I am interested in evaluating summation involving trigonometric terms 
> using maxima. For example
> 
> sum(cos(j/N), j, 1, N)
> 
> Maxima does not give the simplified answer but gives expression 
> involving summation sign. How to get the simplified result?
> 
> I read the manual and came across simpsum : true flag. But this does not 
> simplify the above expression. simpsum : true works only for Riemann 
> kind of sums.
> 
> Any ideas how to extend the sum function to trignometric terms also?
> 
> thanks
> raju
> 
> -- 
> Home page: http://www.people.cornell.edu/pages/kk288/index.html
> Fluid's group: http://groups.yahoo.com/group/flumech/
> 
> _______________________________________________
> Maxima mailing list
(Continue reading)

Kamaraju Kusumanchi | 3 Jun 2004 01:54
Picon
Favicon

Re: trigonometric summation in maxima

I am still not getting how to do it. Here is the sample session with maxima.

(C1) realpart(nusum(j*x, j, 1, N));

                                   N (N + 1) x
(D1)                              -----------
                                        2
(C2) realpart(nusum(j*j*x, j, 1, N));

                              N (N + 1) (2 N + 1) x
(D2)                         ---------------------
                                        6
(C3) realpart(nusum(cos(j/N)*x, j, 1, N));

ERREXP1 NON-RATIONAL TERM RATIO TO NUSUM
                                  N
                                 ====
                                 \         j
(D3)                           ( >    COS(-)) x
                                 /         N
                                 ====
                                 j = 1

We can see that, D3 is left unsimplified.

Milan Lukic wrote:
> Have you tried
>   realpart(nusum(%i*j*x,j,1,N));
> 	
> Milan
(Continue reading)

Stavros Macrakis | 3 Jun 2004 06:38
Picon

RE: trigonometric summation in maxima

> realpart(nusum(j*x, j, 1, N));

Should be realpart(nusum(exp(%i*j*x),j,1,N).

Note that realpart(exp(%i*a)) = cos(a).

The result is a little messy, but there are various simplifications you
can use to massage it into the form you want: the sequence trigexpand,
trigsimp, factorsum isn't bad; trigrat gives a more impressive result in
one step.  Expand'ing the trigrat result gives a nice answer (though it
would be nicer if you could get it to rewrite (2*n+1)/2*x as (n+1/2)*x).
Milan Lukic | 3 Jun 2004 06:36

Re: trigonometric summation in maxima

I apologize. 

In haste, I made a typing error, and then I have been away from
computer for hours. 

What I meant was,

		 realpart(nusum(exp(%i*k*x),k,1,N));
		 
A dose of public humiliation helps!

Milan Lukic

Kamaraju Kusumanchi [02/06/04 19:54 -0400]:
> I am still not getting how to do it. Here is the sample session with maxima.
> 
> (C1) realpart(nusum(j*x, j, 1, N));
> 
>                                   N (N + 1) x
> (D1)                              -----------
>                                        2
> (C2) realpart(nusum(j*j*x, j, 1, N));
> 
>                              N (N + 1) (2 N + 1) x
> (D2)                         ---------------------
>                                        6
> (C3) realpart(nusum(cos(j/N)*x, j, 1, N));
> 
> ERREXP1 NON-RATIONAL TERM RATIO TO NUSUM
>                                  N
(Continue reading)

Vadim V. Zhytnikov | 3 Jun 2004 10:57
Picon

Re: TeXmacs-Maxima interface

Andrej Grozin:
> Hello *,
> 
> Recent changes in cvs maxima made both the old interface (included with
> TeXmacs) and the new one (which I sent to the mailing list a while ago)
> unusable.
> 
> Please test the included interface:
> tm_maxima                   goes to /usr/libexec/TeXmacs/bin/
> texmacs-maxima-5.9.1.lisp   goes to /usr/share/TeXmacs/plugins/maxima/lisp/
> 
> If it works OK, we'll incorporate in into TeXmacs. When Maxima-5.9.1 will
> be released, only a single line in tm_maxima will change.
> 
> Andrey Grozin

Hi Andrej!

I've tried new tm_maxima/texmacs-maxima-5.9.1.lisp with TeXmacs 1.0.3-R2
and 4 maxima flavors gcl, clisp, cmucl and sbcl.  So far I found just
two issues.  One very small - texmacs-maxima-5.9.1.lisp triggers
style warnings on sbcl.  Not a big deal though.

Second problem more serious - it seems that TeXmacs treats %i# and %o#
(and probably %t#) in special way.  When entered in new maxima command
line under TeXmacs these symbols remains as it is but not replaced by
the value of corresponding input or output expression.

And finally, could you take a look at the TeXmacs bug #6860 which
I filled quite a while ago?  The point is that TeXmacs marks first
(Continue reading)

Kamaraju Kusumanchi | 3 Jun 2004 18:52
Picon
Favicon

Re: trigonometric summation in maxima

Milan Lukic wrote:
> I apologize. 
> 
> In haste, I made a typing error, and then I have been away from
> computer for hours. 
> 
> What I meant was,
>     
> 		 realpart(nusum(exp(%i*k*x),k,1,N));
> 		 
> A dose of public humiliation helps!
> 
> Milan Lukic
>    

thank you all. This expression does work.

raju
Donna and Dan Stanger | 4 Jun 2004 03:36
Picon

Latest maxima MS windows version

Does anyone have the latest CVS built with xmaxima for MS windows?
Thanks,
Dan Stanger
Barton Willis | 4 Jun 2004 03:59
Favicon

Re: Latest maxima MS windows version


I built CVS Maxima using gcl 2.7.0 under windows XP.
The test suite shows no unexpected errors.  Search the
2004 list for my notes on how I got this to work;
just getting the needed versions of all the mingw
stuff is frustrating (and a moving target).  But
it works well and wxmaxima works as well.

Good luck.

Barton

-----maxima-admin <at> www.ma.utexas.edu wrote: -----

To: "maxima <at> www.ma.utexas.edu" <maxima <at> www.ma.utexas.edu>
From: Donna and Dan Stanger <dan.stanger <at> ieee.org>
Sent by: maxima-admin <at> www.ma.utexas.edu
Date: 06/03/2004 08:36PM
Subject: [Maxima] Latest maxima MS windows version

Does anyone have the latest CVS built with xmaxima for MS windows?
Thanks,
Dan Stanger

_______________________________________________
Maxima mailing list
 Maxima <at> www.math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima

Gmane