Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

pithe eight digits of your student Id number are used to individualise the questions. they are labelled a1a2a3a4a5a6a7a8a.. all non interger outputs should be to 3 decimal places. question 1_ depending of your own value of a8, write a program that performs the calculation below:

a8             ...

Hello,

I have defined a function(say fun) to do certain task, it works well when I call it from a script file(say script1). However, when I copy the complete script1 and paste onto another script file(say script2), the function, fun, doesn't execute. It's very peculiar as my project requires lot of modification, so I copy the old script and...

If S= { <0,1>,<1,2>} and T={<1,1>,<2,3>} are ordered bases for R2 and v=<1,5> and w=<5,4>, then can someone help me:

-find the coordinate vector of v and w with respect to the basis T by creating a procedure?

-I can make a procedure to find the transition matrix PS<-T from T to S-basis, but can you help find the coordinate vector of v and w with respect to the basis S. Using PS<-T?

Dear Mapleprimes,

 

I am trying to solve an Optimization problem analytically. I set up a lagrangian as follows:

 

L:= Objective function + mu_1 (constraint 1) + mu_2 (constraint 2)

 

I maximise with respect to two variables, call them x1 and x2

 

I want constraint one to bind but not constraint 2. Hence, I set mu_2=0. The I do:

 

diff(L,x1); diff(L,x2), diff(L,mu1), diff(L,mu2)

Hi,
I'm trying to import matlab function from m-file.

File looks like this:

    function out = xxx(omega)
    out = heaviside(omega);

It's only heaviside function.

And now, when I'm using "FromMFile" command in Maple it doesn't recognize Heaviside function. It imports that function as "heaviside" - witch small first character (in Maple we needs big "H").

Any help? 

thx 

I need to make one "DensityPlot-point" (similar Statistics [DensityPlot] or histogram in 
Matrixplot) of a set of points (x, y). 

The set of points (x, y) was generated by the procedure.

Is there a way to generate it?

Thank you.

Please help me plot the graphs of the following equations:-

eq1 := diff(E[X(t)], t) = lambda-delta*E[X(t)]-beta*E[X(t)*V(t)];
 eq2 := diff(E[Y(t)], t) = -delta*E[Y(t)]+beta*exp(-rho*tau)*E[X(t)*V(t)];

eq3 := diff(E[V(t)], t) = gamma+N*kappa*E[Y(t)]-mu*E[V(t)]-beta*E[X(t)*V(t)]
NB:- E[X(t)]= the expected value of variable X at time t. 
Please help me know how to input this...

Hello colleagues! :)

I have some problems after create two objects, with array row in object definition...

module Point() option object;     local base:=Array(0..2);     export ModuleApply::static := proc()   Object(Point, _passed );   end;

The result - two same object...

 

How can i solve for X(t) in the following equation

diff(mean(X(t)), t) = lambda-delta*mean(X(t))-beta*mean(X(t)*V(t))

and how can i plot X(t) against t.

Branched from huffman coding (excellent example).  The huffman tree was not encoded in the message. The tree was known from the original message but suppose we didn't have the original message.  We need the tree in the compressed message.

How do you include the huffman tree in the message?

Every time i open an already saved document and change it then try to save it it comes up with this error:cwmaple.exe has stopped working!!! Why does this happen??

 

 

Please Help

 

Thanks,

Hello all

I have a set of differential equations and its numerical solution, for two functions. Here's the worksheet (just a part of it, I don't need the rest)

##########################################

eq1 := diff(W(r), r) = -(1-beta*(W(r)-W0))*(M(r)+4*Pi*r^3*p(r))/(beta*r*(r-2*M(r)));

eq2 := diff(M(r), r) = 4*Pi*r^2*rho(r);

W0 := solve(thetaR = theta0-W0, W0);

r0:=10^(-5);

rf:=10^20;

# ini := evalf({M(r0) = 0, W(r0) = W0});

How to include/code/type such type of boundary conditions in maple?

Thanks

 

I wrote the following code but am stuck on how to Update prcLeastSquareLA, so it does what prcLeastSquare does.

I believe you have to add error estimate information in prcLeastSquareLA but I have tried to no avail.

 

prcLeastSquareLA:= proc(data,degree)
local vars,y,A,V,k,e,i,j,v,c,1stVars;

vars:= seq(ci, i=0..degree);
y:=unapply(‘+’(seq(ci*t^j, i=0..degree)),t);
for k

Hi, I need to update a procedure prcLeastSquareLA so that it includes error estimate information as output in it. So far for the procedure I have this:

prcLeastSquareLA:=proc(data,degree)

local vars,y,A,V,k,e,i,j,v,c,lstVars;  

vars := seq(c_i, i = 0 .. degree);

y := unapply(`+`(seq((c_i)*t^i, i = 0 .. degree)), t);

 for k to nops(data) do 

e_k := y(data[k][1]) = data[k][2];

v_k := [coeffs(lhs(e_k))];

First 244 245 246 247 248 249 250 Last Page 246 of 2219