Basic Maple plotting problem not workin

  • Context: Maple 
  • Thread starter Thread starter congraduation
  • Start date Start date
  • Tags Tags
    Maple Plotting
Click For Summary
SUMMARY

The discussion addresses a plotting issue in Maple 14 related to a complex equation involving multiple variables. The user defines a function B1 with five variables and attempts to substitute values to create a single-variable equation for plotting. However, the plot command fails due to an invalid input error, specifically regarding the argument type expected by the sqrt function. The user also notes discrepancies between the calculated results in Maple and manual calculations.

PREREQUISITES
  • Familiarity with Maple 14 syntax and functions
  • Understanding of trigonometric functions, specifically arctan
  • Knowledge of algebraic expressions and their manipulation
  • Basic understanding of plotting functions in mathematical software
NEXT STEPS
  • Investigate Maple 14 error handling for function inputs
  • Learn about the correct syntax for the plot function in Maple
  • Explore the use of the sqrt function and its requirements in Maple
  • Review variable substitution techniques in Maple for complex equations
USEFUL FOR

Mathematicians, engineers, and students using Maple for plotting complex equations, particularly those encountering input errors or discrepancies in calculations.

congraduation
Messages
18
Reaction score
0
any how, i have this equation. I have read a quick online tutorial on maple.

this is my equation in raw form

Br*(arctan(W*L/(2*x*(4*x^2+W^2+L^2)^(1/2)))-arctan(W*L/((2*(x+2*T))*[4*(x+2*T)^2+W^2+L^2]^(1/2))))/Pi

because i have 5 varibales, i did

B1(Br,W,L,T,x):= [the above function]

Now, i now have to subsitude the above equation with values, consider the first for varibale to be constant , so i typed in the following command and pressed enter

B1(1.4, 0.1e-1, 0.6e-1, 0.35e-1, x)

and this is what i get, kinda the same way I wanted it to be, simply, a new equation where I'm left with one variable

(1.4*(arctan(0.3000000000e-3/(x*sqrt(4*x^2+0.37e-2)))-arctan(0.6e-3/((2*x+.140)*sqrt([4*(x+0.70e-1)^2+0.37e-2])))))/Pi

but this is where the junk start. I want to plot it so simply running plot[(above eqation),x=50..100) DOESN'T WORK!

plot((1.4*(arctan(0.3000000000e-3/(x*sqrt(4*x^2+0.37e-2)))-arctan(0.6e-3/((2*x+.140)*sqrt([4*(x+0.70e-1)^2+0.37e-2])))))/Pi, x = 50 .. 100)

result:

Error, invalid input: sqrt expects its 1st argument, x, to be of type algebraic, but received [4*(x+0.70e-1)^2+0.37e-2]i don't understand what I'm doning is worng!

another thing,, the answer it calucates is just so wrong if i do it manual like after running this

B1(1.4, 0.1e-1, 0.6e-1, 0.35e-1, 100)

i get

(1.4*(1.499999931*10^(-8)-arctan(0.2997901469e-5/sqrt([40056.02330]))))/Pi

to simply it.. i copy it and paste it in a new line and get this error
Error, invalid input: sqrt expects its 1st argument, x, to be of type algebraic, but received [40056.02330]

the number in brackets is just so wrong then what i caculate by hand

on maple 14
 
Physics news on Phys.org
anyone?
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K