MaplePrimes Questions

I want to have a procedure define a function... If I do: >with(stats); >does_not_work:= proc(t) local v,d0,d1,x,y; > v = rhs(fit[leastsquare[[x,y], y=d0+d1*x]](t)); >end proc; then > does_not_work([[0,1,2],[3,4,5]]); results in "v = 3 + x" as expected, but if I try to have the procedure define a function d as in >does_not_work:= proc(t) local v,d0,d1,x,y; global d; > v = rhs(fit[leastsquare[[x,y], y=d0+d1*x]](t)); > d:= (x) -> v; >end proc; then > does_not_work([[0,1,2],[3,4,5]]); > d(1); does not result in 4, which should be the result of applying

Okay, I'm just really starting to get into Maple again, but I'm having a little trouble getting a package to work.

I'm trying to take a look and review the precalculus package from the application center but it doesn't seem to work. 

It's from maple 7.  The new version doesn't seem to follow through on the commands made.

Hi there :) As i am new here first a short Hello: Hello, my Name is Gernot, and i am Physics Student of the 6th Semester. I am a beginner in Maple, and am prety new to Calculating on the Computer in General. At the moment i need Maple primary for calculations and analyzing Measuring Data from the Exoeriments in my Physics practica. And I have some Questions on that, and hope you can Help me a bit :) As i don't want to do a Monster Posting here, i will make more Topics on ym Questions, although they all stick together ;). So my first question is: I am Having a Vector

I'm trying to plot the solution of the following differential equation:

theta * y''(t) - y'(t) = 0  with boundary conditions  y(-1)=alpha  and  y(1)=beta. Theta is supposed to be very small, say 0.01, and for starters I put  alpha=1  and  beta=-1. But Maple does not compute. I use the following source code:

> singularperturbation:={0.01*diff(y(t),[t$2]) - y(t)*diff(y(t),t) = 0, y(-1)=1,y(1)=-1};

> differentialsolve:=(singularperturbation,y(t),type=numeric,method=bvp[midrich],abserr=1e-2);

Please help me solve these two problems please past the code for maple 11.

2. For the function

f

hi, what code do I use to sum the number of heads from a random coin toss to illustrate the Central limit theorem (relationship between the binomial and normal distribution). The more approachable the code is the better..

I'm very confuse with this question:

- Find one root/zero of  2*x^5-5*x^4+3*x^3-3*x^2+x+2 using Newton's Method. If your polynomial is sadly lackaing in a root, subtract some constant value until the polynomial cuts the x-axis

- Produce four iterations of the Newton's Method. This will result in four successively accurateapproximations to one solution of p(x)=0

- For each iteration, report your beginning xn and the subsequent xn+1 value. For each run, also product a graph of p(x) and the graph of the newest Newton created tangent line

solve({x11*x11+x12*y11+x13*z11=x11*x11+x12*x21+x13*x31,

x11*x12+x12*y12+x13*z12=x11*x12+x12*x22+x13*x32,

x11*x13+x12*y13+x13*z13=x11*x13+x12*x23+x13*x33,

 

x11*x21+x12*y21+x13*z21=x21*x11+x22*x21+x23*x31,

x11*x22+x12*y22+x13*z22=x21*x12+x22*x22+x23*x32,

x11*x23+x12*y23+x13*z23=x21*x13+x22*x23+x23*x33,

 

x11*x31+x12*y31+x13*z31=x31*x11+x32*x21+x33*x31,

Warning, computation interrupted

 

> solve({x11*x11+x12*y11+x13*z11=x11*x11+x12*x21+x13*x31,

x11*x12+x12*y12+x13*z12=x11*x12+x12*x22+x13*x32,

x11*x13+x12*y13+x13*z13=x11*x13+x12*x23+x13*x33,

 

x11*x21+x12*y21+x13*z21=x21*x11+x22*x21+x23*x31,

x11*x22+x12*y22+x13*z22=x21*x12+x22*x22+x23*x32,

x11*x23+x12*y23+x13*z23=x21*x13+x22*x23+x23*x33,

Hi,

I have a matrix with 3 columns and I want to change the order of columns 2 and 3. In fact  column to must be column 3 and vice versa. I was wondering if there is a function that I can use? (the number of rows is variable)

Thanks,

Ibo

I use Optimization package and I obtain a warning

"Warning, no iterations performed as initial point satisfies first-order conditions"

What is the first-order condition?

Thanks,    Sandor

 

Hi,

First of all, I am wondering if this is even possible or even generally used... Maybe what I'm trying to do is not defined or whatever... I dunno.. But I'm gonna ask anyway.


What I want is to make a polar plot, with a different range.

I have a function r(a) which obviously calculates some radial distance as a function of the angle a.

I have so far found 2 ways to plot this in a polar graph:
with(plots):
plot(r(a), a=0..Pi, coords=polar)

hi, if generate 10 random 0 and 1's by using the following maple code > restart: > coin:=rand(0..1): > coin_1:=proc(n) seq(coin(),i=1..n) end: > data1:=coin_1(10); How can I count the number of sequences that have a lenght equal to 1 zero, 2 zero, 3 zero, 1 one, 2 one, 3 one etc etc and how can I plot it in a histogram to illustrate the law of large numbers alex

When I use maple in the shell of Linux, I  always get this kind of output of polynomials:

  2       2        
a  - 2 y  + b y.

My question is could I get them in more regular form,

a ^2 - 2 *y^2  + b* y.

Any idea?


 

Hi,

 

Using maplets, how can i get a button on the form to point to another form with a picture. So i am hoping to have 3 forms A1,A2,A3, each have 3 buttons, one to point to the next form, one the previous and one to shutdown. I can create the buttons on the form, the problem is having one point to another, thanks.

First 2231 2232 2233 2234 2235 2236 2237 Last Page 2233 of 2409