DJJerome1976

540 Reputation

12 Badges

18 years, 107 days

MaplePrimes Activity


These are questions asked by DJJerome1976

How do I get Maple to reduce/simplify the following difference quotient to its lowest terms? Basically I need Maple to rationalize the numerator. Any suggestions on how to do this?

f := proc (x) options operator, arrow; sqrt(2*x+1) end proc

proc (x) options operator, arrow; sqrt(2*x+1) end proc

(1)

expand((f(x+h)-f(x))/h)

(2*x+2*h+1)^(1/2)/h-(2*x+1)^(1/2)/h

(2)

simplify((f(x+h)-f(x))/h)

((2*x+2*h+1)^(1/2)-(2*x+1)^(1/2))/h

(3)

rationalize((f(x+h)-f(x))/h)

((2*x+2*h+1)^(1/2)-(2*x+1)^(1/2))/h

(4)

``


 

Download rationalize.mw

I'm trying to approximate the solution of an IVP using Euler's method in the InitialValueProblem command and I keep getting this error (see attached worksheet). Can someone explain why? Thanks!
 

restart

with(Student[NumericalAnalysis]):

InitialValueProblem((D(y))(t) = t*y(t)+1/y(t), y(0) = 3, t = 2, method = euler, numsteps = 5, output = solution)

Error, (in dsolve/numeric) array output cannot be obtained for problems containing global variables

 

``


 

Download ivp_error.mw

Can anyone offer an explanation why the following error occurs, and how it can be avoided? Thanks!

 

plots:-shadebetween(2, 1/sqrt(-x^2+1), x = 0 .. (1/2)*sqrt(3))

Error, (in t) invalid input: nops expects 1 argument, but received 0

 

``

 

Download error.mw

I am trying to simplify the eigenvalues of a 2x2 matrix [[a,b],[c,d]] subject to the condition a,b,c, and d are integers such that a+b = c+d. Why do the following commands not achieve this?

with(LinearAlgebra):

A:=Matrix[[a,b],[c,d]]):

Eigenvalues(A) assuming a::integer,b::integer,c::integer,d::integer,a+b=d+c

How might I achieve what I need?

First 6 7 8 9 10 11 12 Last Page 8 of 16