MaplePrimes Questions

I'm trying to get familiar with the Physics package. It's huge.  Since I know vector projection, I can guess what a projected vector might be. But what would a non-projected vector be in a physical context? 

A web search for non-projected vectors was unsuccessful.

My best guess is that non-projected vectors in Maple are those where no coordinate system is specified for vectors in an expression for a physical law. Like here in Maxwell equations. Am I correct?

To distinguish between these vectors the Physics[Vector] package uses an underscore “_”.

If my understanding is correct so far, I have three questions:

  • Can I replace the unit vectors of implemented projected vectors to something else (e.g. _i to e__x)
  • Is it possible to define projected vectors beyond what is implemented in Maple?
  • Can I use the packages VectorCalculus and Physics[Vector] at the same time?

Hi friends

Could you please give hints to solve the integral

int(exp(I*k*x)*sech(x),x=-infinity..infinity)

Thanks

I am trying to run this procedure, but am getting an "Error, missing operation", highlighting the conditional break:

is_prime := proc()
     local i, x_check;
     printf(`Enter an integer to check if it is a prime number...`);
     x_check:=parse(readline(terminal));
     if x_check<=2 then
         printf(cat(x_check,` is a prime number.`));
     else
         for i from 2 to x_check-1 do
               if (irem(x_check,i)=0) then
                  printf(cat(x_check,` is not a prime number.`));
                  break 2;
             end if;
           end do;
         printf(cat(x_check,` is a prime number.`));
      end if;
end proc:

If I don't include the integer, I am able to run the procedure, but it does not function like I would like it to. I am running Maple 2022, and can sucessfully run the example conditional break code in the Help. What is wrong with my use of break?

Does Maple 2017 have cwmaple.exe?
                                                                                

GraphTheory/IsHamiltonian says that the method can be one of legacy, sat, or tsp. But why method = tsp brings about an error? 

GraphTheory:-IsHamiltonian(GraphTheory:-CompleteGraph(3, 3), method = tsp); # Maple 2022.2

Attachment: HamiltonianGraphQ.mws

I am trying to use the perpendicular symbol &bot; as a superscript. Can this be done? For somereason the document will not displat?

Maple Worksheet - Error

Failed to load the worksheet /maplenet/convert/Q_10-12-22_Polar_point_line_symbol.mw .

Download Q_10-12-22_Polar_point_line_symbol.mw

I read the article "Approximate Symmetries and Infinite Series Symmetry Reduction Solutions to Perturbed Kuramoto–Sivashinsky Equation", and also searched out in Maplesoft website, but couldn't found. Does anyone have the package?

I have a problem in my document (MapletsDisplayError.mw) with the following four lines of code

with(Maplets[Elements]);
maplet3 := Maplet(MessageDialog(warning, "No file containing dissociation constants found.", 'onapprove' = Shutdown()));
with(Maplets[Elements]);
Maplets[Display](maplet3);

Attached are two documents.  The first contains just the lines above and works fine.  The second generates an error when run if you choose No to both dialogs, and the error appears to be with the same four lines of code (if I comment those lines I do not get an error).

ThisWorksWithoutError.mw

MapletsDisplayError.mw

Please help! How to solve this?

pp-velocity.mw

Hello.

I was wondering if it was possible for maple to automatically type in the values of the variables when calculating like

U:=50V

R:=10ohm

U/R=50V/10ohm=5A

instead of just typing

U/R=5A

hope my question makes sense :D

Let x, y, z be nonnegative real numbers. Obviously, x3+y3+z3-4xyz is not always nonnegative, since its value is -1 when x=y=z=1. But why Maple's minimize gives wrong result? 

minimize(x^3 + y^3 + z^3 - 4*x*y*z, x = 0 .. infinity, y = 0 .. infinity, z = 0 .. infinity);

Attachment: MinValue.mws.

MMA's Minimize finds correct infimum: 
So, can Maple always find correct exact (i.e., not just numerical) global minima (or maxima) at least for such problems with a small number of variables as well?

When you use

restart:
with(Physics):
Setup(mathematicalnotation=true):
diff(x(t), t)

the output is $\dot{x}(t)$
When you write 

restart:
alias(x=x(t)):
diff(x, t)

the output is $\frac{\partial}{\partiall t} x$

Is it possible to "mix" these two in such a way that diff(x, t) appears as $\dot{x}$ ?
Notation.mw

Thanks in advance

Wanted to plot a vector with the arrow function

for some reason the arrow head was not created. tried changing the input so the resulting coordinat would be [10,10] insted of [725,350] this created an arrowhead on the line.

with(plots):
with(plottools):
l1 := arrow([0, 0], [725, 350], 0.1, 0.4, 0.1, arrow, color = red, legend = "Vector v");
display(l1, axes = frame, view = [0 .. 900, 0 .. 500]);

Why does it not create the arrow head happen???

Either I am clueless (or very tired) or StringTools:-Remove is not behaving as it should (document attached)

IsThisABug.mw

Suppose a have a file "test.txt" with the following single line of code (intentionally missing the "end if"):

When I run "maple test.txt" from the command line, it shows the following and quits:

> if x = 1 then print("hi");
> quit
> quit
on line 3 of "test.txt", syntax error, reserved words `quit`, `done`, or `stop` unexpected
> quit

But it quits with exit code 0, despite the syntax error. Is there a way to get Maple to quit with a nonzero exit code when there is a syntax error?

What I would actually like is that if Maple encounters any error at all (syntax or otherwise), the script immediately ceases execution and exits with a nonzero error code. When the error is NOT a syntax error, I can at least accomplish this by wrapping the entire script in a try/catch block. But I'm hoping there's a better way.

First 248 249 250 251 252 253 254 Last Page 250 of 2425