MaplePrimes Questions

accroding to http://www.maplesoft.com/support/help/Maple/view.aspx?path=convert%2fVector  set can't be converted to Vector.

So I have to convert set to list, then convert the list to a Vector:

a:={1,2}:
convert(convert(a,list),Vector);

I was wondering if there is a short way to type this or a command that I might have overlooked, as it seems too much typing for such a common operation. (it would be nice if convert would support this automatically by doing the above so one can just type convert(a,Vector).  I am using Maple 17.02. I googled around, and did not find anything.

On a side note: The reason I ask, is that dsolve and many other operations like it, return the solutions as a set. Many times I need to multiply this by a Matrix. Hence the conversion need.

Hi

 I have a problem why the result does not appear..my code are:

> P := array([[8, 4], [8, 3], [8, 2], [7, 1], [6, 0], [5, 0], [4, 0], [2, 1], [1, 1], [1, 4]]);


> for j from 2 to 5 do k[j] := j+1;

x[j] := add(P[j, 1], j = j-1 .. j+2);

X[j] := add(P[j, 1]^2, j = j-1 .. j+2);

y[j] := add(P[j, 2], j = j-1 .. j+2);

Y[j] := add(P[j, 2]^2, j = j-1 .. j+2);

xy[j] := add(P[j, 1]*P[j, 2], j = j-1 .. j+2);

cx[j] := evalf(x[j]/k[j]);

cy[j] := evalf(y[j]/k[j]);

c11[j] := evalf(X[j]/k[j]-cx[j]^2);

c22[j] := evalf(Y[j]/k[j]-cy[j]^2);

c12[j] := evalf(xy[j]/k[j]-cx[j]*cy[j]);

C[j] := evalf(Matrix(2, 2, [[c11[j], c12[j]], [c12[j], c22[j]]]));

E[j] := Eigenvalues(C[j]);

if E[j][1] > E[j][2] then lambda[j] := E[j][2]/(E[j][1]+E[j][2]) else lambda[j] := E[j][1]/(E[j][1]+E[j][2])

end if;

end do;

the If function does not work and the result does not appear. Is there any problem in my code.

 Thanks

 

  1.   The formula to calculate a length of rafter may be given as

Length of rafter = √ (rise)squared + (run)squared            

      (The whole of the RHS has been square rooted but cant type that symbol)

Transpose this equation and express in terms of the rise. Describe each stage so as to clearly identify what you have done.  Using this new equation calculate the rise if the length of the rafter is 7m and the run is 6. Write your answer to 3 s.f. 

 

 

If anyone has any ideas or could help it would be really appreciated. Thanks. 

 

I was asked to transform (x+y)^2+(1)/x+y into ((x+y)^3+1)/x+y, I have tried nomer/denom, but i don't how to factorise the nomer bit into (x+y)^3+1 because maple factorise it differently by default. therefore, it would be grateful if anyone can help me with this...please?

I am trying to run the application "The Cosmic Travel Planner" by Christian Bar (CBaer), uploaded on August 21, 2013 on Maple cloud (Mobius@admin). I use the left panel of GUI where "MapleCloud" is opened. While opening the application GUI asks my permission for running some code automatically. After my 'YES' Maple gives me an error:

Startup Code Error
0, "permission denied: no read access (%1)", "C:\Users\Andriy\MapleLib"

I tried to give the permission to folder "C:\Users\Andriy\MapleLib" however unsuccessfuly.

OS: Win 8

Could you help me with this Error? Thank you.

I wish to find the slope of the tangent line to the graph of y=(3x)/(x-2) at the point x=3, y=9. Then I want to plot both the tangent line and the graph on the same plot with the tangent line with a green solid line, and the original graph with a blue dashed line. So far I've gotten: v := proc (x) options operator, arrow; 3*x/(x-2) end proc; vprime := D(v); eval(diff(3*x/(x-2), x), {x = 3, y = 9}); plotv:=plot(v); plotvprime:=plot(D(v)); Then I'm not sure how to add the colors in the plot. I can get both graphs on the same set of axes by using: plots[display](plotv,plotvprime); Anyone know how to add the appropriate colors? (Also is what I have done correct?) Thanks.

I have an equation x2y-3y3x=0. I want to find the slope of the graph at the point (3,1) , that is the derivative at that point. I was told it was possible to do this in one line of command, so I was just wondering if anyone knoew how to do this. Any ideas would be helpful. Thanks in advance.

Hi

I have entered two functions and got a solotion for them:

Now i want to know if there is someway Maple can do this automaticly:

 

So that i not have to do like i did here, manuel copy-paste the values into the function, or re-enter them.

 

Using Maple 17.02 on Windows 64-bit, but i guess that makes no differance, since it's java :) 

 

Try makeing it simple, i'm new with Maple.

 

Thanks in advance!

Emil Kristensen

 

Hello, everyone!
Yesterday I accidentally rechecked the value of the integral of the function (below) and realized that it’s wrong:

f:= (x) -> (140.63530552419235473*x^4-681.04317103471061441*x^3+1204.2531184722204895*x^2-918.72829449327961838*x+254.16640660607969646)*x^10*(-5.985078986*10^(-7)*x^60+1.993612326*10^(-7)*x^61+5.369283226*10^(-8)*x^62-3.905639782*10^(-9)*x^64-1.659594038*10^(-8)*x^63+1.136103415*10^(-9)*x^65+2.247893270*10^(-10)*x^66-9.859204804*10^(-12)*x^68-6.233393896*10^(-11)*x^67+1.592005934*10^(-15)*x^73+2.636562187*10^(-12)*x^69+5.984365418*10^(-17)*x^74+3.098099702*10^(-13)*x^70-1.518364555*10^(-17)*x^75-6.215495764*10^(-15)*x^72-8.072161759*10^(-14)*x^71+7.108000000*10^(-7)-6.487695780*x^35-1.360148323*x^34+5.274954197*x^37+.278832666*x^36-.7198386404*x^43-3.348539406*x^39+.4203371703*x^38+.2531612707*x^45-.1973755246*x^44+1.711371118*x^41-.5547081746*x^40-0.7529286752e-1*x^47+0.7791628267e-1*x^46+.3904150312*x^42+0.1908735114e-1*x^49-0.2492657821e-1*x^48-0.4145806290e-2*x^51+0.6590414121e-2*x^50-0.4207722840e-4*x^56-0.1240685054e-3*x^55+0.7736126808e-3*x^53-0.1455570281e-2*x^52+0.1706676905e-4*x^57+0.5498382671e-5*x^58+0.2699386379e-3*x^54-0.2004264239e-5*x^59+.2715685673*x^10+.1111862378*x^8+.1883518910*x^9+0.2403811424e-1*x^6+0.5607230320e-1*x^7+0.8649081345e-2*x^5-3.880498062*x^31+5.968690982*x^33+2.038776931*x^32-1.725063618*x^30+1.669644062*x^29+.9016766288*x^28-.1370795088*x^25-.396947214*x^27-.348231765*x^26+.11698597*x^23+.2531405922*x^22+.1735045534*x^20-0.42936268e-1*x^19-0.39439553e-1*x^24-.3711884921*x^16+.28461699*x^21-.2677594262*x^18-.3961103119*x^17-.2103764104*x^15+0.113596644e-1*x^14+.205907773*x^13+.3148084900*x^12+.3274995670*x^11+0.5980983565e-3*x^3+0.1044830939e-3*x^2+0.2555141074e-2*x^4+0.1216249880e-4*x):

The notorious integral value:
int(f(x), x=0..2);
Maple 17 returned -2.552045317*10^6.  And what is more awkward that the result is changing over time. Despite the fact that some other computer algebra system tells me that the value must be about 6.0857912022, you can enjoy the plot of f(x):

How can we fix it?

Dear Experts,

 

I would like to evaluate the following integral

Integrate(BesselJ(0,x)^2, x=0..Infinity).

 

However, it is not being evaluated in Maple.

 

Appreciate your response.

PDE.mw

Hi i attach the file that i have problem with.I guess it is not the first problem with datatype=float[8], but i will appreciate if someone could help me with it.

After calling pdsolve i get the answer in the module "structure", i try to plot it and i get :

Error, (in pdsolve/numeric/plot) unable to compute solution for t<HFloat(0.0):
unable to store [.02091392039809]-5.00000000000000 when datatype=float[8]

 

I am not sure how to interpret it and what should i change to make it work.

My PDE is a Bellman equation and my problem is that i actually know only one boundary condition "icond", is there a way to solve it without other conditions?

Thank you

Find the value: P=sin(10)sin(30)sin(50)...sin(890) ?

I gave this function:

g := -2-k[1](lambda*alpha[2]*k[2]+alpha[1](-2-2*k[2]+k[2]*lambda^2))+k[1](lambda*alpha[2]*k[2]+alpha[1](-2-2*k[2]+k[2]*lambda^2))*lambda(lambda*alpha[2]*k[2]+alpha[1](-2-2*k[2]+k[2]*lambda^2))^2

I would like to factor out or to collect:   (lambda*alpha[2]*k[2]+alpha[1](-2-2*k[2]+k[2]*lambda^2))

I use following command: collect(g, lambda*alpha[2]*k[2]+alpha[1](-2-2*k[2]+k[2]*lambda^2))

Nevertheless, I receive an error ...

Error, (in collect) cannot collect lambda*alpha[2]*k[2]+alpha[1](-2-2*k[2]+k[2]*lambda^2)

 

Could you help me to solve my issue ? 

What am I doing wrong ? Do I have to use another command for this ?

I would like to thank you in advance.

Best regards,

D.L.

 

I've just upgraded from Maple 15 to Maple 17, and discover that I cannot any longer write curly right braces in math mode. I use an international (Norwegian) keyboard, where curly right braces should be available by Ctrl+Alt+=, but nothing happens when I try to write this. I can work my way around it by using Copy and Paste, but this is inelegant, particularly when I want to demonstrate Maple for my class of 400 students.

Looking at older posts, I found this question, which concerns inline evaluation with international keyboard in Maple 16. Inline evaluation works fine for me, using Ctrl+Shift+=. So was this fixed at the expense of Ctrl+Alt+= ?

How to write the product  A_i=prod(s_j/{s_i-s_j},j=1..50, j not=  i)

First 1515 1516 1517 1518 1519 1520 1521 Last Page 1517 of 2429