Will

1781 Reputation

16 Badges

20 years, 299 days
Maplesoft
Developer
Waterloo, Ontario, Canada

Social Networks and Content at Maplesoft.com

Maple Application Center

Will Spaetzel is a Software Architect in the Maple T.A. Team at Maplesoft.

He started at Maplesoft in May of 2004 for a 16 month internship while completing his Bachelor of Computer Science from the University of Western Ontario. During his final year at UWO, he continued on as moderator for MaplePrimes. He joined Maplesoft full-time in May 2006 and moved to the web team in Jan 2007. In December of 2010, Will moved to the Maple T.A. team. 

Will was born and grew up in Ontario, Canada. He maintains a personal blog, dabbles in photography builds web applications in his spare time.

MaplePrimes Activity


These are replies submitted by Will

It looks like the tickmarks option does not have an effect on the loglogplot. However, by using plots[display], you can get around this. As you can see below.

> with(plots): a:= loglogplot(exp(10^x), x = 1 .. 20):

display(a,tickmarks=[0,0]);

Maple Plot

Maple Equation

This post generated using the online HTML conversion tool
Download the original worksheet View worksheet on MapleNET

Your problem came from the your command to leftsum, I changed f to f(x) so that Maple understand that you are giving it a function. Otherwise Maple would try and do an infinite recursion mapping x to x to x to x....

> restart; with(student):
> f:= x->x; #anything, just so long as f is a function.
> b:= leftsum( f(x), x=1..2,6); # the range and number of rectangles aren't really important.
> b;> c:= evalf(b);
> c;
>

Maple Equation
Maple Equation
Maple Equation
Maple Equation
Maple Equation

This post generated using the online HTML conversion tool
Download the original worksheet View worksheet on MapleNET

Our web team is working on updating that page. They are still finializing the details of where the old MaplePrimes content will live. Thanks for pointing it out. ____ William Spaetzel Marketing Engineer, Maplesoft

To enter a fraction, just type it in as you would expect, for example to get Maple EquationI just type a/b. Maple formats the fraction automatically.

Fractions are equivalent if the numerator and denominator can be multiplied by the name number to get a fraction equal to the first, so in general, Maple EquationSo if you want to find a fraction equal to Maple Equation just multiply the numerator and denominator by the same number.

As an example, Maple EquationWhich I can verify with this command:

Maple Equation

Maple Equation

To find the least common divisor, just use the lcm command, which means lowest common multiple

Maple Equation

Maple Equation

Type the expression in the same way you did in your posting. To get out of an exponent press the right Maple Equation arrow key.

It is not easy to make Maple display its steps, some solutions are given here. The problem comes from the fact that Maple uses algorithms for solving problems which are far different from the ones that you would use on paper. So even if you got the steps, it probably would not help you.

This post generated using the online HTML conversion tool
Download the original worksheet View worksheet on MapleNET

To enter a fraction, just type it in as you would expect, for example to get Maple EquationI just type a/b. Maple formats the fraction automatically.

Fractions are equivalent if the numerator and denominator can be multiplied by the name number to get a fraction equal to the first, so in general, Maple EquationSo if you want to find a fraction equal to Maple Equation just multiply the numerator and denominator by the same number.

As an example, Maple EquationWhich I can verify with this command:

Maple Equation

Maple Equation

To find the least common divisor, just use the lcm command, which means lowest common multiple

Maple Equation

Maple Equation

Type the expression in the same way you did in your posting. To get out of an exponent press the right Maple Equation arrow key.

It is not easy to make Maple display its steps, some solutions are given here. The problem comes from the fact that Maple uses algorithms for solving problems which are far different from the ones that you would use on paper. So even if you got the steps, it probably would not help you.

This post generated using the online HTML conversion tool
Download the original worksheet View worksheet on MapleNET

Could you please post your operating system and version? This will make it easier to track down your problem. ____ William Spaetzel Marketing Engineer, Maplesoft
If you wish for people to be able to help you, please spell out the specific problem that you are having in Maple. People can't help if only name the category of problem that you are having. ____ William Spaetzel Marketing Engineer, Maplesoft
I don't know what caused that problem, obviously it is a bug in the MaplePrimes HTML conversion. It would be best if you corrected the text in your post manually. I will look into the bug and hopefully will be able to fix it. Thank you for pointing it out. ____ William Spaetzel Marketing Engineer, Maplesoft

The reason that you had trouble posting your code is because angle brackets signify a tag in HTML. Instead of using the angle brackets, use < for less than and > for greater than. Or you can choose the Plain Text input format which will cause the site to ignore anything that looks like HTML.

Here is your function

> RLLS:=proc(vt)
local max,v,N,k,feq,mu,lambda;
max:=.01:
v:=vt:
N:=9.807:
k:=.0001:
feq:=10:
mu:=2:
if abs(feq/mu*N)<= 1 then
  lambda:=k*feq/mu*N
else
  lambda:=k*signum(feq/mu*N)
end if;

if abs(v-lambda)<=k then
  feq:= (-mu*N/k)*(v-lambda)
else
  feq:=-mu*N*signum((v-lambda)/k)
end if;

> end proc:

>

>

You have a problem because you are trying to evaluate the boolean value of an inequality where the left hand side of the inequality does not have a numeric value.

As you can see, RLSS(v(t)) fails when it tries to evaluate abs(v(t)-0.1e-3) <= 0.1e-3. We don't have a value for v(t)

> RLLS(v(t));
Error, (in RLLS) cannot determine if this expression is true or false: abs(v(t)-0.1e-3) <= 0.1e-3

If we instead try RLSS(x), where x is a number. The function works fine

> RLLS(5);

Maple Equation

Maple Equation

This post generated using the online HTML conversion tool
Download the original worksheet View worksheet on MapleNET

The reason that you had trouble posting your code is because angle brackets signify a tag in HTML. Instead of using the angle brackets, use < for less than and > for greater than. Or you can choose the Plain Text input format which will cause the site to ignore anything that looks like HTML.

Here is your function

> RLLS:=proc(vt)
local max,v,N,k,feq,mu,lambda;
max:=.01:
v:=vt:
N:=9.807:
k:=.0001:
feq:=10:
mu:=2:
if abs(feq/mu*N)<= 1 then
  lambda:=k*feq/mu*N
else
  lambda:=k*signum(feq/mu*N)
end if;

if abs(v-lambda)<=k then
  feq:= (-mu*N/k)*(v-lambda)
else
  feq:=-mu*N*signum((v-lambda)/k)
end if;

> end proc:

>

>

You have a problem because you are trying to evaluate the boolean value of an inequality where the left hand side of the inequality does not have a numeric value.

As you can see, RLSS(v(t)) fails when it tries to evaluate abs(v(t)-0.1e-3) <= 0.1e-3. We don't have a value for v(t)

> RLLS(v(t));
Error, (in RLLS) cannot determine if this expression is true or false: abs(v(t)-0.1e-3) <= 0.1e-3

If we instead try RLSS(x), where x is a number. The function works fine

> RLLS(5);

Maple Equation

Maple Equation

This post generated using the online HTML conversion tool
Download the original worksheet View worksheet on MapleNET

Hello, could you please post this as a blog entry? Your blog is the best place to tell people about Maple tips or other things that you want to share. The forums are designed for people to ask questions, not to share information. If you post this as a blog entry, I can even promote your post to the front page so that more people will see it. ____ William Spaetzel Marketing Engineer, Maplesoft

> g:=n -> sum(a[i]*x^i, i = 1 .. n);

Maple Equation

It looks like your problem is solved just by dropping the Array( from the following command. You can simply use a list without problems.

a:=[0, 5, -4, 6, 7, 2, -2, 0];

Maple Equation

g(4);

Maple Equation

arrays are used by the older linalg package. Arrays are used by the newer LinearAlgrebra package.

Maple Equation

This post generated using the online HTML conversion tool
Download the original worksheet View worksheet on MapleNET

> g:=n -> sum(a[i]*x^i, i = 1 .. n);

Maple Equation

It looks like your problem is solved just by dropping the Array( from the following command. You can simply use a list without problems.

a:=[0, 5, -4, 6, 7, 2, -2, 0];

Maple Equation

g(4);

Maple Equation

arrays are used by the older linalg package. Arrays are used by the newer LinearAlgrebra package.

Maple Equation

This post generated using the online HTML conversion tool
Download the original worksheet View worksheet on MapleNET

Hello, I just fixed your previous post, I replaced your less than symbols (<) to &lt; Your problem is not a result of the software running MaplePrimes, it is with HTML in general. Angle brackets are what signifies HTML markup, so it makes representing inequalities difficult. If you do not need to use any HTML, just choose the Plain Text input format, it will make sure that whatever you type in gets displayed exactly as you typed it. If you have any more problems, please post them in the MaplePrimes Suggestions forum ____ William Spaetzel Marketing Engineer, Maplesoft
Hello, I just fixed your previous post, I replaced your less than symbols (<) to &lt; Your problem is not a result of the software running MaplePrimes, it is with HTML in general. Angle brackets are what signifies HTML markup, so it makes representing inequalities difficult. If you do not need to use any HTML, just choose the Plain Text input format, it will make sure that whatever you type in gets displayed exactly as you typed it. If you have any more problems, please post them in the MaplePrimes Suggestions forum ____ William Spaetzel Marketing Engineer, Maplesoft
First 34 35 36 37 38 39 40 Last Page 36 of 48