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
• Download a Brochure
• Request a Brochure
• Download a Demo
• Request a Demo
• Meet Our Team
• Read our RSS Feeds

Learn More

Maple Home
Maple 12 Professional
Maple 12 Academic
Maple 12 Student Use
Recorded Online Seminars
FREE Training Resources
Maple Application Briefs
Maple Adoption Program

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

Latest Information

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


Service & Support

Maple Primes
blogs, forums etc

Elite Maintenance Program
Application Centre
Powertools
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] solve function's behavior

Search email archive for  

[MUG] solve function's behavior
Author: Huy Cuong Nguyen    Posted: Wed, 6 Nov 2002 00:17:31 -0500

>> From: "Huy Cuong Nguyen" "nguyen06"

Hello,

I have to convert some Maple's code to C, but I met some problem to
convert the solve function.
Here is two functions I have to solve :

restart;
f:=cos(mm*Pi*(lambda1-lambda01)/lambda1*FF)+cos(mm*Pi*(lambda1-lambda01)/lambda1*FF)*(n1+constb/lambda1^2)^2/n^2-(-1)^mm*(n1+constb/lambda1^2)^2/n^2+(-1)^mm;
f2:=cos(mm1*Pi*(lambda2-lambda02)/lambda2*FF1)+cos(mm1*Pi*(lambda2-lambda02)/lambda2*FF1)*(n1+constb/lambda2^2)^2/n^2-(-1)^mm1*(n1+constb/lambda2^2)^2/n^2+(-1)^mm1;

The only variables for f is lambda1 and for f2 is lambda2. Here is values
of other parameters:

lambda01:=5347.4916;
lambda02:=5655.0244;
lambda03:=6000.4412;
FF := 1.081668343;
FF1 := 1.085724768;
n1:=1.593;
n:=.1;
mm:=17;
mm1:=16;
constb:=476000;
L1:=5394.0;
L2:=5692.1;

This is only a exemple, real values depend on rumtime.
Now if I type :

> solve(f=0, lambda1);
it will print 5642.194085 and

> solve(f2=0, lambda2);
5667.926754

but these functions have several solutions, it can be verified by plot
them:

plot(f, lambda1=5000..5900);
plot(f2, lambda2=5000..5900);

What I would like to know is WHY the solve function returns theses values
and not other.

Note: I have to know it because I have to use the Newton approximation to
solve theses equations in C program and the result depends closely on the
initially estimated value. I want to simulate the behavior of solve
function in C program.

Thanks.

-HCN-

Previous by date: [MUG] Maple 8 under Debian GNU/Linux - or, really, problems with glibc2.3, Meik Hellmund
Next by date: [MUG] Can Maple krack this kernel?,  NS Jones, Mathematics
Previous thread: [MUG] Macintosh OS X Command Line Maple 8, Bill Bauldry
Next thread: [MUG] Can Maple krack this kernel?,  NS Jones, Mathematics



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