Newbie: problem solving basic equations



Daniel Lemire wrote:
> 
> Ah! So I could use...
> 
>   simplify(a):=trigsimp(scsimp(a));
> 
> Great!@:-)
> 
> Now, I'm asking this again... is there a way to make create some kind of
> default configuration where, for example, I could define my simplify
> function above... I'd like this setup is such a way that it will run
> everytime I launch maxima. What is the least inconvenient way of doing this?

You can have any set of macsyma commands read in each time you
start up the program by putting the commands in a particular
file.  It is something like c:\.macsyma-init , but probably
not EXACTLY like that.  The difficult is that
wrapping trigsimp(scsimp())  aroundevery command,  is probably not
a good idea.
RJF
> 
> Thanks!
> 
> U-E59264-Osman F Buyukisik wrote:
> 
> > Daniel Lemire writes:
> >  >  > Reading the section on Trigonometric functions says to use TRIGSIMP
> >  >  > for simplifying trigonometric expressions.
> >  >  >
> >  >  > TRIGSIMP(a*sin(x)^2+a*cos(x)^2);
> >  >  >
> >  >  > will work.
> >  >
> >  >
> >  >
> >  > Does it? Really? It does nothing here...
> >  >
> >  > [lemire@romeo lemire]$ maxima
> >  > GCL (GNU Common Lisp)  Version(2.4.0) Wed May  9 12:02:00 CDT 2001
> >  > Licensed under GNU Library General Public License
> >  > Contains Enhancements by W. Schelter
> >  > Maxima 5.6 Wed May 9 12:01:49 CDT 2001 (with enhancements by W. Schelter).
> >  > Licensed under the GNU Public License (see file COPYING)
> >  > (C1) TRIGSIMP
> >  >
> >  > :true;
> >  >
> >  > (D1)                                 TRUE
> >  > (C2) SCSIMP(a*(sin(x))^2+a*(cos(x))^2);
> >  >
> >  >                                     2           2
> >  > (D2)                         a SIN (x) + a COS (x)
> >  > (C3) TRIGSIMP:true;
> >
> > TRIGSIMP is a function not a flag. usage:
> > trigsimp(expr);
> >
> >
> > (C14) trigsimp(a*(sin(x)^2)+a*(cos(x)^2));
> >
> > (D14)                                  a
> > (C15)
> >
> > You can look at the help for trigsimp, trigreduce.
> >
> > Osman
> >
> >
> 
> --
> Daniel Lemire, Ph.D.
> 
> http://www.ondelette.com/
> 
> _______________________________________________
> Maxima mailing list
> Maxima@www.math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima