Adept Scientific - English
The world's best software for research, science and engineering.
flag arrow
clearclear
 

 Adept Store | register Join My Adept | Flags  
Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055  
UKusdedksvnofi
Home
Products
Training
Consultancy
 Buy Online
Downloads
Education
Support
My Adept
International |  About Us |  Contact Us |  Press Room |  Jobs


The Next Steps

• Ask us a question
• Maple Product Tour
• Buy Maple Now
• View Maple Pricing
• Find out about Online Training
• Download a Brochure
• Request a Brochure
• Download a Demo
• Request a Demo
• Meet Our Team
• Read our RSS Feeds

Learn More

Maple Home
Maple 11 Professional
Maple 11 Academic
Maple 11 Student Use
Recorded Online Seminars
FREE Training Resources


MapleNet
Maple T.A.
MapleConnect
BlockImporter for Simulink
BlockBuilder for Simulink
Maple Toolboxes
Maple Rave Reviews
Maple Study Guides
Books about Maple
System Requirements

View Maple 10 in Action
Product Comparison Chart

Latest Information

New Features: Professional
New Features: Academic
The Maple Reporter
The Maple Reporter Online
Numerical Algorithms Group
(NAG)


Service & Support

Maple 10 Training Videos
MaplePrimes, blogs, forums
Elite Maintenance Program
Application Centre
Powertools
Maple User Group (MUG)
Join the Maple User Group
(MUG)

Search the Knowledge Base
Technical Support request

List Archives >  Maple User Group List Archive >  Archive by date >  This Month By Date >  This Month By Topic

[MUG] How to force a common factor from a simbolic matrix

Search email archive for  

[MUG] How to force a common factor from a simbolic matrix
Author: Nicolai Sirbu    Posted: Sun, 28 Jul 2002 12:00:38 +0300

>> From: "Nicolai Sirbu" "nsirbu"


Hy everyone,
I performe several matrix simbolic computations and the result is a matrix.
Analysing the result matrix there are obvious terms that can be put in the
front of the matrix as common factors. How can i do that (what's the maple's
command to do such thing)?
Thanks in advance

[MUG] Re: How to force a common factor from a simbolic matrix
Author: Edwin Clark    Posted: Mon, 05 Aug 2002 15:09:50 -0400

>> From: Edwin Clark "eclark"

On Sun, 28 Jul 2002, Nicolai Sirbu wrote:

> I performe several matrix simbolic computations and the result is a matrix.
> Analysing the result matrix there are obvious terms that can be put in the
> front of the matrix as common factors. How can i do that (what's the maple's
> command to do such thing)?


Here's a procedure that ought to do what you want:

> factor_out:=proc(A)
> local g,i,x;
> x:=ListTools[Flatten](convert(A,listlist));
> g:=gcd(x[1],x[2]):
> for i from 3 to nops(x) do
> g:=gcd(g,x[i]);
> end do:
> g*map(x->x/g,evalm(A));
> end proc:

Example:

> A:=matrix([[sin(2)*a,sin(2)*2*a],[sin(2)*3*a,sin(2)*4*a]]);

> factor_out(A);

[1 2]
sin(2) a [ ]
[3 4]

>

------------------------------------------------------------
W. Edwin Clark, Math Dept, University of South Florida,
http://www.math.usf.edu/~eclark/
------------------------------------------------------------

[MUG] Re: How to force a common factor from a simbolic matrix
Author: Robert Israel    Posted: Mon, 02 Aug 2002 09:08:35 -0700

>> From: Robert Israel "israel"

You might try "factrix" from my Maple Advisor Database,
http://www.math.ubc.ca/~israel/advisor.

Robert Israel "israel"
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia
Vancouver, BC, Canada V6T 1Z2

On Sun, 28 Jul 2002, Nicolai Sirbu wrote:

> Hy everyone,
> I performe several matrix simbolic computations and the result is a matrix.
> Analysing the result matrix there are obvious terms that can be put in the
> front of the matrix as common factors. How can i do that (what's the maple's
> command to do such thing)?
> Thanks in advance
>

Previous by date: [MUG] Solving equations with radicals, PierLuigi Zezza
Next by date: [MUG] A bug?, Emilio Sanchez
Previous thread: [MUG] Re: package for dynamics and nonlinear control, Jason Schattman
Next thread: [MUG] A bug?,  Carl Eberhart



Ready to buy?

Maple - single user licence
Add to shopping basket
$ 1,895.00
Upgrade to Maple 12 from v11
Add to shopping basket
$ 995.00
Upgrade to Maple 12 from v10 & below
Add to shopping basket
$ 1,395.00

Featured Downloads

Maple White Paper: Technical Knowledge - An Asset You Can Afford to Lose?
Maple in Electronics Application Pack
Maple in Robotics & Aerospace Application Pack
Maple in Finance Application Pack

Product Reviews

"Without the Maple software, we would have to spend weeks generating the equations of motion for every experiment. Then the chances that we did it right would basically be near zero. There would always be a mistake somewhere. It is very difficult to set up a dynamic motion model by hand."
- Jean-Claude PiedBeouf, Ph.D Manager of Robotics, Canadian Space Agency

"Its very good - highly accurate and easy to use. The speed of Maple allows me to change equations and quickly reintegrate them into the application, so more possibilities can be explored to achieve the precise effect desired."
Shawn Neely, Senior R & D Director for PDI/Dreamworks
adept

Top of the Page

Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2007, Adept Scientific plc.
Site designed and maintained by Adeptise

Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055