Items tagged with subs subs Tagged Items Feed

What I have done is stores algsubs names and expressions in a dual column matrix for later use. Now I need to assign them to each other. matrix is called store

column 1     column2

    a1             4.28x+2.3

    CX3          6.5x^2 +3x

    S1    ...

Question about "subs"

May 11 2012 by mmasoudsf 0 Maple

Hi,

I have a problem with "subs" command in maple. When I use it the outcome does not show only the final result. It shows the (middle operations=final result).

For example, suppose that v(t)=x^2+1 is a function obtained from some calculations and L:=h*u(t). WhenI use: f:=subs(u(t)=v(t),L); it shows: h*u(t)=h*v(t)=h*(x^2+1). I want to show only the final results: h*(x^2+1). It make a problem in my next calculation in solving some differential equations.

I have an equation of the plane Q: x + y + z - 1 = 0. Now i want to define a function 

f:=(x,y,z)->lhs(Equation(Q)): 

and i calculate the value f(1, 2, 3), but Maple understand. Plese help me.

If i want to substitute the coordinates N(a + 1, b + 2, c + 3) into the equation of the plane Q. What must i do?

there are four points :

O = (0, 0), P = (0, b/d), Q = (beta/delta, 0), R = ((-d*beta+b*gamma)/(-delta*d+gamma*c), (beta*c-delta*b)/(delta*d-gamma*c))

and then  define the jocbian maxtrix as

J=Matrix(2, 2, {(1, 1) = beta-2*delta*x-gamma*y, (1, 2) = -x*gamma, (2, 1) = -y*c, (2, 2) = b-2*d*y-c*x})

at last , i want to get the jocbian matrix at the four points,  so  must substitute the coordinate of the four point into the...

I have a set of test equations. I am substituting the coefficients of the variables A1 ..A4 and the constants in the equations. Most of this I have made work fine. There are 2 coefficients I cand make be substituted. In eq1 k*d the coefficient of A3 and eq5 3.1d2 also the coeff of A3 .Have tried subs and algsubs but can't make it work. The reason I want to do this is in reality I have 15 equations...

Hi everyone,

 

Working on my project, I have this error "Error, (in VectorCalculus:--) too many levels of recursion".

The project is about filetring a stochastic process.

 

When I want to calculate one of the integrals, I have that error.

Here is the code:

 

Rxi:=sqrt(d)*IdentityMatrix(4):
xi:=WienerProcess(Rxi);
Reta:=sqrt(d)*IdentityMatrix(2):
eta:=Array([WienerProcess(Reta...

Check the correctness of the solution by substituting for all found roots.

This are my found roots:

a:=12+10x^4+7x^3-89x^2+65x

and i found my roots (e.g);

b:= -3.5666666666,1.238969999,5.7777777,8888888888

 

I have a set of multi variate polynomial  equations. I need to setup a matrix [G][x]=[Θ]  Θ is a function of c1 and c2 up to 4th order terms

 My problem x=[c15, c14c2 , c13c22 , c12c23 , c1c24 , c25 ] these 6 5th order terms...

I wrote the following MAPLE lines to determine the three constants a, b and c from three boundary conditions. Whatever a, b and c I get as result are correct. Now I want to substitute back the values of obtained a, b and c in the expression for Te to obtain the resulting temperature distribution. I used both algsubs(a, b, c, Te) and subs(a, b, c, Te) one by one to substitute a, b and c in the expression for Te and get the result. But both way it is showing...

subs does not work

December 27 2011 by samantasubho 0 Maple 13

I wrote the following Maple lines:

x^1.0 generated float power

November 27 2011 by icegood 255

p := proc() a:=1; b:=2; a/b end proc;

subs(1=1.0, eval(p));

proc () local a, b; a := 1.0; b := 2; a^1.0/b end proc;

why it generates a^1.0? It's rather nonsens. How to avoid such behavior?

Hello,

 

I'm doing a math assignment for numerical methods and I had to answer a question - solving Newton's method in maple to submit. I need to solve the question to an accuracy of 10^-5. I don't have access to the software right now as I only have it on the computers at our school, but I did take a maple course in my first year of university and have some experience with it. I wrote up this formula, but I'm not 100% sure if its correct. Could someone...

How do I edit a large proc to replace a couple of lines or add a few more if I don't save it and the screen was cleared?  Am I out of luck and have to retype it all back in?

And how do I substitute in a proc n_pts<5 to n_pts<5  or say substitute i=50 to i=30 .  I'm stuck with the operators.  I thought using delayed evaluation would work.  ie/  newproc:=subs( 'i=5' = 'i=30' , eval(newproc))

Page 1 of 1