MaplePrimes Questions

write a maple function which takes a 2xN matrix and plots the points given by its columns on a 2D graph?

Hey altogether,

how can I solve the following problem:

for i from 1 to n do f_i := x -> i; od;

In this case f_1(x) should return 1, f_2(x) should return 2, and so on? The code above is not working because the right-hand side is not evaluated. Even trying eval/unapply/.. didn't help.

Thanks for your response,
Stefan

Good morning,

I have the following question. I write the following command

t1 := taylor( sin(x), x=0, 6);

How may I plot "t1" excluding  the term O(x^6)?

plot( t1, x=-3..3) does not work -probably- because O(x^6).

Thanks in advance,

JJ

I need to plot the probability distribution function

f(x) = n!/(x!*(n-x)!*(2^(n))).

Can I just plot this as any other function using the various plot commands, or is there some statistics package option specially made for this?

Also can this distribution help me answer the question of obtaining the probability that the fraction of heads for 10, and 100 total coin tosses will be between 0.445 and 0.555?

 

 

Hi, I'm very,very new to maple, project due on monday so help needed urgently please! I have an array (as a result of dsolve) of the form below (obviously a lot longer) [a=0.001, b=123, c=345, d=565] [a=0.002, b=124, c=345, d=567] [a=0.003, b=125, c=456, d=765] I need to plot the first and third columns against each other so I used the op function to extract these columns arr := Array[1 .. 100]; for i to 100 do arr[i] := [op(1, ans(i)), op(3, ans(i))] end do However, this gives me [a=0.001, c=345] [a=0.002, c=345] [a=0.003, c=456]

Hello All,

This is my first post, and I want to thank you for helping guys like me.

I am working on a project, but I've gotten to a point, where I need help :(

Actually, it is 2 points...

  • I am using Maple 12 (document mode), and I'm trying to get the following graph drawn:

mm:=(101/100)*ln(10)-ln(S(t))+10-S(t) = 5*t

plot2:=implicitplot(mm, t = 0 .. 10, S = 0 .. 10)

display(plot2)

How do I define a Function of functions with maple?

For example:

F(y(x),y´(x))=y(x)*y´(x).

or

F(u(x),v(x))=sin(u(x)v(x)).

 

Thanks,

Sebastián Varas K.

 

 

I have a curve which has two peaks and I need to find the width of each peak at half the height of peak's value.

What do I need to do to find the widths?

I checked the forums and only this suggestion didn't give an error message, but the results is not helping me out much.

max(flatten(Img_pigeon_HWT));

 

results in

flatten(Vector(4, {(1) = ` 1..512 x 1..768 `*Array, (2) = `Data Type: `*float[8], (3) = `Storage: `*rectangular, (4) = `Order: `*C_order}))

 

The purpose of all this is to do some edge detection upon an image.

 

I'm trying to solve a diffusion PDE with initial conditions, but can't seem to get the syntax right? Here's what I have: pde:= diff(C(r, t), t) = Di*(diff(r^2*(diff(C(r, t), r)), r))/r^2-lambda*C(r, t)+Beta Initial conditions (which I'm not sure how to define) C(r,0)=0 C(0,t)=finite C(a,t)=0 r=0 to a t>0 I can use pdsolve(pde,build) to get a reasonable solution, but when I try: pdsolve(eq, C(a, t) = 0, build) I get: Error, (in pdsolve/info) wrong extra arguments: {C(a, t) = 0}

By Maple

convert(LegendreQ(1,x),hypergeom)

hypergeom([1, 3/2], [5/2], 1/x^2)/(3*x^2)

LegendreQ(1,0.)

-1.000000000-3.141592654*10^(-15)*I

The 2F1 form suggests for me that in x=0 LegendreQ is infinite or at least undetermined. So what is the truth?

I work with LegendreQ(1,x) where x is real.

Thanks,

                      Sandor

 

Hi all,

I am doing some research where I solve three differential equations simultaneously.. The results are three optimal time paths, W(t), R(t), and H(t). I want to plug these three into an integral, and solve (to get the net present value of my initial problem). I have no problem solving the diff. equations and getting values, given initial conditions. I am getting an error in the integration. I know I am missing something in the way I set it up. Anyways, I am putting my steps here below. Thanks for taking a look!

Boy, this program sure makes me feel like an idiot.  (I am a full professor at a top university, but maple has turned me into an idiot.)

so, here's my stupid question now:

(for those of you who do statistics, this is the principal stratification problem in causal inference.  Eventually, I'll replace equations 9-11 with other conditions.

I hope to show my class this.)

Hello, I want to evaluate a double integral with fsolve as a limit. A simplified version of the problem is:

f:=(r,z)->r+z;

evalf(Int(Int(1,rbar=0..fsolve(f(r,z)=1,r)),z=0..1);

I've tried several variations of unapply and '...' but get the error:

Error, (in fsolve) z is in the equation, and is not solved for

 

I'd appreciate your advice!

 

Although I am relatively new to Maple, Maple TA and postgreSQL, I am technically literate, but cannot find the answer to this question.  What I would like to do is pull off a SQL query that shows the answers given by all the students to one particular question, say worksheet 7 question 5.

However, a particular question seems to be held in the database as, say, answersheetitem.question=3 and answersheetitem.questiongroup=4, as in my current query, shown here:

****begin sql

First 2173 2174 2175 2176 2177 2178 2179 Last Page 2175 of 2427