MaplePrimes Questions

Hello,

I'm using Maple 7 and got a question:

I've got the function y

y:=x->(x)^0.5; ug:=0; og:=10;

and

xs:=2;

ys:=3;

How do I create a point with the coordinates [xs,ys] and plot it with the function y in one graphic?

I'm using plot(y(x),x=ug..og); to plot the function y.

Thanks for your help!

flash20001

hi,i want my output be a complex number,how do i use the printf command?for example  s=3+4*i be a output.

Hey, I need to write a procedure to calculate the romberg approximation by combining the trapezium rule approximations. The command will be RombInt(f(x),a,b,m,n), where a and b are the 2 limits and m is a number more or equal to 0 which indicates the number of iterations and n is a integer more or equal to m. Also given is that when m=0, this approximation can be called TrapRule(f(x),2^n,a,b). (I have got the procedure for this traprule, if that helps)

So basically...

Hey, I have made this procedure for the trapezium rule but I get an error when I perform this calculation.

Procedure is 

TrapRule:=proc(f,N,a,b)
local k,sum1,h,i:
h:=(b-a)/N:
sum1:=0:
for i from 1 by 1 to n-1 do
sum1:=sum1+f(a+i*h):
end do:
k:=(h/2)*(f(a)+2*sum+f(b)):
return (k):
end proc:
When I try calculating (TrapRule(exp(x),4,-3,1)); I get 
Error, (in TrapRule...

Simple question:

Solve y''(x)-y'(x)+2y(x)=10e^(-x)sin(x)

Mathematica answer:

which is correct.

Maple 15 can get the homogeneous solution (the first two terms) but the particular solution? Not as we know it.

y(x) = exp((1/2)*x)*sin((1/2)*sqrt(7)*x)*_C2+exp((1/2...


I am evaluating a difficult integral of an oscillating function.

f:=k->evalhf(piecewise(k=0,1,k>0,cos(k*(dz))*BK0(k*rho1)/BK0(k*a)));

evalf(Int(f, kmin..kmax, method = _d01akc,epsilon=eps,maxintervals=1000000))

with dz>0 and possibly very large
kmin is Pi/(2*dz)
the number of cycles is nc = ceil((1/2)*kl*dz/Pi) with kl = 91.563
kmax=  kmin+nc*2*Pi/dz

Each evaluation of this integral using a call to the NAG routine (_d01akc ) eats up 


this is a link:

I'm using the printf command and i want my output a decimal number to get it published

s1=0.5555552487 and f(s1)=0.2542365647 what should i do?

hi;

when run file , maple give wrong result, plz help me

my file is attached

thx

 EKM3-cylindrical_pan.mw

I have solved  the following BVP system in Maple

restart; e := 12; Sc := .1; Pr := .7; Gr := 1; M := .1; sys := diff(f(t), `$`(t, 3))+2*f(t)*(diff(f(t), `$`(t, 2)))-(diff(f(t), t))^2-M^2*(diff(f(t), t))+Gr*theta(t) = 0, diff(theta(t), `$`(t, 2))+2*Pr*f(t)*(diff(theta(t), t)) = 0, diff(phi(t), `$`(t, 2))+Sc*(2*f(t)*(diff(phi(t), t))-phi(t)) = 0; bcs := f(0) = .1, (D(f))(0) = 0, theta(0) = .5, phi(0) = 1, (D(f))(e) = 0, theta(e) = 0, phi(e) = 0; sol := dsolve({bcs, sys}, numeric); plots[odeplot...

For educational purposes, I would like to hide some code (procedures) in a maple file. I put these procedures in a subsection which I can collapse. But everytime you execute the worksheet, the subsection is automatically expanded and I have to collapse the subsection again.
Is there a way to avoid the automatic expansion of subsection while executing the worksheet? 

If we have a matrix with n rows and 1 column of n-variable function  how to use the subs?

How to implement in maple, the differentiation matrix of second order ?
Is it possible to implement it with the command LinearAlgebra[BandMatrix]?

I can not get the matrix:



Lets look at an example using the following set of 8 discrete points (x,y)

(2,5),(4,15),(6,35),(8,65),(10,100),(12,145),(14,195), and (16,255).

 

 

 

 

Hi,

I need to extract the extremes of a cyclical function, actually I have all the data (x,y) and I was wondering whether extracting these extremes as I have shown in the attached figure will be easy with Maple or not? NOTICE that the attached figure is actually 2 series of data overlaid, you just consider the blue one and ignore the red one

TIA

 

Hi,

I wanted to know if it possible to get maple to skip all operations to the bottom if it receives an error anyway through my program? I have a number of seperate lines and don't want to put it into one big if statement.

Thanks

First 1791 1792 1793 1794 1795 1796 1797 Last Page 1793 of 2429