Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Hello everyone,

I need to write a procedure which takes a function as an input, differentiate it wrt x, multiply the result with x/y, and then evaluate the resulting function of (x,y) in a loop at different (x,y) pairs and return the results. 

I have a problem at the very first step though:

Suppose my function is

y := x->-(x-6)-0.01*(x-6)^3;

hence the new function I want to use in my procedure is

g := (x,y) -> diff(y(x),x)*x/y;

HI all,

After long manipulations, I was able to write the first solution y1 in this form (following the method of Frobenius):

It looks like `forget` works on procedures with option 'cache'.

I realize that there is a routine Cache:-RemovePermanent. But should `forget` be clearing the permanent Cache entries for a procedure?

> cacheFunc := proc() option cache; print(args); args; end proc:
> Cache:-AddPermanent( cacheFunc, [5], 10 );
> op( 4, eval(cacheFunc) );
                      Cache(512, 'permanent' = [5 = 10])
 
> forget(cacheFunc);
> op( 4, eval(cacheFunc) ); # NULL return, it's empty

Q: Write a procedure OddEven that takes a list L of integers and returns a list of the odd-numbered entries followed by the even-numbered entries.  So, for example,
OddEven([1,3,5,7,9,11]);
should return [1,5,9,3,7,11].  (Note: unless you find a clever solution you will need a several-line procedure using proc..end proc.   You will perhaps need an if statement so that you can deal with the case where the list has an odd number of elements and where it has an even number of elements separately.)

 

 

My ideas...

Hi there ! The attached worksheet has a good review on the theory of Limits and Continuity of functions that have two or more variables.

The attached worksheet has a specially designed tool that helps you evaluate the limits of really complicated multivariable functions.

 

Please feel free to ask questions.

Limits_and_Continui.mw

Given that
3*(sum(cot(m*Pi/(2*M+1))^2, m = 1 .. M))

is a polynomial of degree r in M, find r and the coefficient of M. (The coefficient is an integer)

Any ideas how to go about solving this problem? When i input this particular indefinite sum into Maple it does not generate a polynomial.

Good morning and evening! I got a procedure f1, which takes two numbers and outputs one. Just a numeric computation. NLPSolve(f1, -1..2, -2..2); Warning, no iterations performed as initial point satisfies first-order conditions but plotting a 3D graph shows me a good, smooth minimum. Setting starting point does not help. It seems that NLPSolve thinks that gradient is equal to zero, but why?

Hi,

I’m quite new to maple so I need a bit of help. I am trying to solve the Navier-Stokes equations (NSE) in 2D along an infinite channel  which has fluid being sucked out of it through the walls.

u/∂t + (u∙grad)u=-(1/ρ)grad(p)+ (nu)grad^2u

I need to write down the NSE.
u=(u,v,0) is the velocity of the fluid.
The flow is steady so ∂u/∂t=0.
I need to take the curl of the NSE to eliminate the pressure term as taking the curl of
gradp=0.

hi,

I have two columns as seen below. I want to sort column Y in descending order but I want to                                                                      return the the X value of such a Y value as well.

Hi, Would appreciate some help - Re: checking solutions of the first order DE in Maple? Tried to search in Help, but could only find solutions to 2nd order DE. For instance, when I enter: > ode := diff(y(x), x) = y^2*exp(x); d 2 --- y(x) = y exp(x) dx > solve(ode); I get: Error, (in solve) cannot solve expressions with diff(y(x), x) for x > Many thanks! Antonio
First 2006 2007 2008 2009 2010 2011 2012 Last Page 2008 of 2229