ThU

891 Reputation

13 Badges

15 years, 8 days

MaplePrimes Activity


These are answers submitted by ThU

For completeness, you can also use Kitonum's formula in MapleSim, see attachment.

 

1.msim

"Find in attached code a pulse in serie with integrator, but I can not get a triangular signal

Also, a triangular signal should be between -1 and 1 and not between 0 and 1.

Thanks for your help"

 

You can add a negative offset to the pulse source. This would also give the triangle. But the trapezoid is the easiest way.

use a pulse source with an integrator in series or take a trapezoid source with meaningful parameters

You could temporarily replace terms with algsubs, like t=x^2*y and then use collect to sort things. Maybe more elegant it would be if you have a matrix formulation of this equation.

I suppose Maple just cannot solve this recurrence equation with non constant coeffs. It already fails to solve

P(n+1)+P(n)+n*P(n-1) = 0;

rsolve(%,P)

It works if you set the factor n from P(n-1) to 1

Just for fun

with(plots);
f := x^2-2*y^2+x+y;
p1 := spacecurve([cos(t), sin(t), 0], t = 0 .. 2*Pi, colour = red);
p2 := plot3d(f, x = -1 .. 1, y = 0 .. sqrt(1-x^2), scaling = constrained, axes = normal);
p3 := plot3d(0, x = -1 .. 1, y = 0 .. sqrt(1-x^2), transparency = .7, style = patchnogrid, colour = blue);
display(p1, p2, p3, view = [-1 .. 1, -1 .. 1, -1.3 .. 1]);

You have a pole at x=464/19, you cannot integrate over it. use assume to make safe integration ranges.

Set inner loop variables to the end value when needed, like this:

 

for s to 10 do
print(s);
if s = 5 then print("end here"); s := 10 end if
end do;

Or just add a print command:

thanks, this looks good to me, addtable is useful.

I thought I had an easy solution for that. For instance, I typed

Y(s)/X(s)=1/(s+1)

Then context menu->cross multiply->context menu->inverse laplace transform. Unfortunately, terms like

invlaplace(s*Y(s),s,t) are not transformed to d/dt invlaplace(Y(s),s,t)

For the latter, one could define an alias and the deq would look fine.

 

See operators,elementwise (~)

Type x, then Cntrl-alt-o, this places the cursor above the x. Then insert your symbol, here ^ or something. The size of the hat can be changed via fontsize.

 

This works with German keyboard setttings, yours may differ.

with(StringTools):
CountCharacterOccurrences( "abada", "a" );

Change t=-1+4*z

The resulting integral should be easy to solve. Easiest way to do this in Maple: Use the integration tutor

First 14 15 16 17 18 Page 16 of 18