pirolafire

2 years, 180 days


These are questions asked by pirolafire

3d plot problem

May 04 2010 by pirolafire 173 Maple

Hello

I am trying to plot a 3d function, but there is a problem.

Here is a screenshot of the problem img130.imageshack.us/img130/6008/3dplotproblem.jpg

thank you

Hello,

I would like to graph a piecewise parametric function:

1 < t < 2
x(t) =1.146967180*(t-1)^3-2.178399723*(2-t)^3+38.3612214*t+106.1461765
y(t)=.3047483217*(t-1)^3-.5750322227*(2-t)^3+10.1163822*t+444.0230985

2 < t < 3
x(t)=-.4672626810*(t-2)^3+1.146967180*(3-t)^3+45.2430246*t+92.3825701
y(t)=-.1402738345*(t-2)^3+.3047483217*(3-t)^3+11.9448719*t+440.3661194

.. and so on and so forth

I have searched and tried playing with the plot command but to no avail.

Sum of matrix line

April 22 2010 by pirolafire 173 Maple

0

3

I have a 3x3 matrix called test, I am trying to compute the sum of all the elements of the first line.

 

sum(test[1,j],j=1..3)

Error, bad index into Matrix
 

how to do?

 

thank you

I have written a procedure.  Without going into details, here is the pseudocode of the procedure:

time:=proc(begin,end,c,deltaT)

t:=0;
v:=0;
accel:=5
where-we-at:=a;

while where-we-at =/= end do

distance:=*distanceformula*;
where-we-at:=*where-we-at* formula;
t:=t+deltaT;
v:=someformula;
accel:=accelformula;

end do;
return(t);
end proc:

 

Hello, I have about 80 equations for x and 80 equations for y. They are called Sx_0 .. Sx_80 for x and Sy_0 .. Sy_80. They all depend on parameter m.

I want to define a new piecewise function P such as,

P evaluated at m=i  is equal to [  Sx_floor(i) evaluated at i , Sy_floor(i) evaluated at i ]

For example,

Hello,

I have defined an expression f. This expression f, when integrated from 18 to b, is equal to 20. My goal is to find this b value. Since the integral is very hard to solve symbolically. This is what I did:

 

with(Student[Calculus1]);
ApproximateInt(f, t = 18 .. b, method = simpson);

by trying some random numbers v, I have found the approximate value of b.

 

Hello,

I have about 30 equations, let's call them Si

I want to plot them. Each Si is defined for some x between xi and xi+1

In other words, i want to plot:

S0  for x0 < x < x1

S1  for x1 < x < x2

S2  for x2 < x < x3

S for x3 < x < x4

... all the way to i=29

<p>Hello</p>
<p>I am trying to assign equations:</p>
<p><img src="http://img121.imageshack.us/img121/9821/assign.jpg" alt="" /></p>
<p>But i get the invalid arguments error. What is the problem?</p>
<p>Thank you</p>

Every nth row matrix

February 21 2010 by pirolafire 173 Maple

Hello

I have a matrix, let's call it A. I want to define a new matrix by taking every n-th row in the A matrix. How do i do that?

For example,

A= | 2 3 5 |
     | 9 2 1 |
     | 5 1 2 |
     | 1 8 9 |

 

the B, if n=2, is equal to

| 2 3 5 |
| 5 1 2 |

Hello, I have an equation with 200 variables and I want to assign them to a 1 column by 200 rows matrix. My variables are named ΔXi where i goes from 0 to 100. My Matrix is named Matrix.

I have tried something like that:

ΔXi := Matrix(i) but I get "Error, unsupported type of index, i"

Any ideas?

Thank you
 

Hello everyone

I have a cost function I would like to minimize. It is a fairly simple function that only contains multiplications and additions.

Only problem is, this function has about a hundred variables, but they can only be between the interval [0,1] so I guess it makes the problem easier.

Is it possible to write a little program in maple that can be ran as much as I want it to run and that could try to find an approximation of the actual solution? (By trying random numbers between 0 and 1)

Thank you very much

Matrix question

November 27 2009 by pirolafire 173 Maple

Hello,

I have a question about matrices in Maple.

 

I have defined the matrices s, x, y and z which are all 5x1 matrices. I have also defined a constant c

Now I want to define a 5x1 matrix, in which each element will be defined by a function:

Page 1 of 1