Scott03

774 Reputation

10 Badges

19 years, 327 days

MaplePrimes Activity


These are answers submitted by Scott03

If you would like to have cos applied to each of the values in A, try map(i->cos(i),A); Although likely, you will just get a lot of unevaluated cos calls unless they are 0,Pi/4, 2*Pi/3, Pi,... If you would like float values for each of the resulting matrix you try map(i->evalf(cos(i)),A); Scott
I think I have been able to reproduce this in Maple 10 but this appears to have been fixed in Maple 11. I believe this happens when the Matrix (or Vector) is larger than the rtablesize value in the interface. When this happens, to see the data you have to double click on the placeholder to see the "Browse Matrix" window. If you are just using a 15x1 Matrix, try executing the following before the Matrix is imported interface(rtablesize=15); This will allow you to see a Matrix or Vector with a dimension up to 15 within the Maple worksheet. This should solve your problem for that Matrix. Scott
If you enter just the right hand-side of the equation, you can then right click and choose Optimization and then either the maximize or minimize. Remember this is just a local maximum and minimum. The output of the Maximize would be [2.99988000179998820*10^80, [X = 9.99990000000000000*10^19]] The first part is the maximum y value you are looking for and the second part indicates the X value to get this result. You can then right click on the result and choose Numerical Formating to indicate the number of digits you would like to display. For example the above answer with Scientific formatting to 2 decimal places gives [3.00*10^80, [X = 1.00*10^20]] You can also use the maximize command to get this result and use the evalf to control the number of digits but I find the right click context menu nicer. By the way, the Numerical Formating is new with Maple 11, so previous versions of Maple will not have that option. Scott
The following is one solution to this problem:
eqn := y+y^2
TempL := [1, 3, 5, 9]
map(y1-> eval(eqn, y = y1) , TempL)
This will sub all the values in TempL one at a time into the eqn. If you create a procedure for yourself, you can make this easier to call and possibly more informative like the following:
TestSub := proc (eqn, TL) 
local temp; 
temp := map(y1 -> eval(eqn, y = y1), TL); 
printf("For the equation: "); 
print(eqn); 
seq(printf("For %d, the answer is %d \n", TL[i], temp[i]), i = 1 .. nops(TL)); 
end proc:
I hope this helps. Scott
Someone else may come back with some other options, but one option that I found that to get the solution that you are looking for is to change the method type to rk45, change the output to a piecewise and specify a range. For example the following will give you the ability to find the 6th derivative. >eq_0 := (D(x[0]))(t) = (-2*x[0](t))*1/(1-x[1](t)): >eq_1 := (D(x[1]))(t) = 2*x[0](t)/(1-x[1](t)): >sys := {eq_0, x[0](0) = 1, x[1](0) = 0, eq_1}: >fcns := {x[0](t), x[1](t)}: >sol1:=dsolve(sys, fcns, numeric, method = rkf45, range = 0 .. 2, output = piecewise): >sol1x0:=eval(x[0](t),sol1); >diff(sol1x0,t$6); >eval(%,t=1/2); 0 By using the piecewise output you are limited to rkf45, rosenbrock based methods and the taylorseries method. Scott
For the most part you need Real values for the plot commands. The only difference is the complexplot commands that allow the complex values. If you wanted to use the complexplot as an animation you could try something like this >with(plots): >fun:=eval(exp(-I*(omega*t+k*x)), {omega = 2, k = 4}); >animate(complexplot,[fun,x=-1..1],t=-1..1); Another option is to break the function into the two parts and have a combined animation like this: >F1:=Re(fun); >F2:=Im(fun); >animate(plot, [[F1, F2], x = -5 .. 5], t = -5 .. 5); Scott
Delete the ' quotes around the if statement and all should be well. Well at least I found it worked after that when running on my Maple 11.01. Scott
You can get the first result if you use convert(a*exp(I*x)+a*exp(-I*x),trig) then simplify the result with the assumption that x is real by right clicking on the result and select Simplifications> Assuming Real. The result I get for your second example is sin(2*x)/(1+cos(2*x)). EDIT: from the second example, expanding the above result will give the answer you are looking for. Scott
Although this isn't an application to show step by step, but there is a tool called "Equation Manipulation" which with the user's input can go step by step through solving this sort of equation. If you have Maple 11.01, all you need to do is enter the equation, x^2+3=28 and then right click on the result and choose equation manipulation. With this tool you are able to add/subtract and multiply both sides of the equation with different numbers and terms to solve this equation. Scott
What sort of topics are you looking for step by step explanations? There are a few tutors (Integration Methods, Differentiation Methods, Gauss-Jordan Elimination, Gaussian Elimination, and Matrix Inverse) which show step by step methods for doing those type problems. These can be found in Maple 10 and 11 by going to the Tools>Tutors and choose either the 'Calculus- Single Variable' or 'Linear Algebra' to find the tutors. Scott
The question is asking for you to enter in (a*b)/c+((a-d)/(b*e))*I), the book had an extra bracket, but you entered the following in your worksheet(a*b)/(c+((a-d)/(b*e)*I)). Scott
One method is to first try the following: > with(geom3d); > plane(P1, 2*x+y-z = 1, [x, y, z]); > plane(P2, 2*x+y-z = 6, [x, y, z]); > distance(P1, P2); This is by using your equations to define some planes and use the distance function to find the distance. Scott
Jacques is correct that this is likely a command in a hidden block that is calling the typesetting assistant. If you execute each line at a time, you can determine where the hidden block is. Once you have found it, you can go to the Edit menu and Expand the Document block. Alternatively you can select a section around where you think this block is and expand multiple blocks at one time. Scott
If you execute n:= rtable_dims(A)[1]; What do you get? Scott
It appears that you are trying to reference a value of the Matrix that doesn't go to that index value. What is the value of n and the dimensions of your A matrix? Scott
First 19 20 21 22 23 24 25 Last Page 21 of 30