login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for #231 simplify working on matrices revision 2 of 2

1 2
Editor: kratt6
Time: 2007/12/28 15:03:36 GMT-8
Note:

added:

From kratt6 Fri Dec 28 15:03:35 -0800 2007
From: kratt6
Date: Fri, 28 Dec 2007 15:03:35 -0800
Subject: 
Message-ID: <20071228150335-0800@axiom-wiki.newsynthesis.org>

Category: New feature request => Axiom Library 


Submitted by : (unknown) at: 2007-11-17T22:12:36-08:00 (16 years ago)
Name :
Axiom Version :
Category : Severity : Status :
Optional subject :  
Optional comment :

It would be very nice if function simplify could operate on matrices, simplifying each element.

axiom
A:=matrix _
 [[tan(x)**6 + 3*tan(x)**4 + 3*tan(x)**2 + 1, _
   tan(x)**5 + 3*tan(x)**3 + 3*tan(x)], _
  [tan(x)**4 + 3*tan(x)**2, _
   tan(x)**3 + 3*tan(x)]]

\label{eq1}\left[ 
\begin{array}{cc}
{{{\tan \left({x}\right)}^6}+{3 \ {{\tan \left({x}\right)}^4}}+{3 \ {{\tan \left({x}\right)}^2}}+ 1}&{{{\tan \left({x}\right)}^5}+{3 \ {{\tan \left({x}\right)}^3}}+{3 \ {\tan \left({x}\right)}}}
\
{{{\tan \left({x}\right)}^4}+{3 \ {{\tan \left({x}\right)}^2}}}&{{{\tan \left({x}\right)}^3}+{3 \ {\tan \left({x}\right)}}}
(1)
Type: Matrix(Expression(Integer))
axiom
map(simplify,A)

\label{eq2}\left[ 
\begin{array}{cc}
{1 \over{{\cos \left({x}\right)}^6}}&{{{\left({{\cos \left({x}\right)}^4}+{{\cos \left({x}\right)}^2}+ 1 \right)}\ {\sin \left({x}\right)}}\over{{\cos \left({x}\right)}^5}}
\
{{-{2 \ {{\cos \left({x}\right)}^4}}+{{\cos \left({x}\right)}^2}+ 1}\over{{\cos \left({x}\right)}^4}}&{{{\left({2 \ {{\cos \left({x}\right)}^2}}+ 1 \right)}\ {\sin \left({x}\right)}}\over{{\cos \left({x}\right)}^3}}
(2)
Type: Matrix(Expression(Integer))

feature present via trivial transformation --kratt6, Sun, 13 Nov 2005 11:47:57 -0600 reply
Status: open => closed

Category: New feature request => Axiom Library