## Trying to do the inner product of two complex vect...

Hi,

I'm trying to calculate the inner product of these two vectors.

|a> = (1 + i) i, (1) j, (i) k

|b> = (4 - 1) i, (0) j, (2 -2i)k

where bold i, j, k, are the orthonormal bases.

I can calculate it on paper, the problem I'm having is figuring out how to calculate it using maple. I want to be able to use dirac notation. I've tried using the physics library but none of the example use actual vectors but instead use quantum numbers.

Thanks,

## How i can solve this proplem on maple?...

Poiseuill's law: the formula is correct if both sides has the same dimension, so it is required that

[v]=[(P*Rm*nn)/L]

find n and m that make the above equation dimensionally correct

## How to separate units from numbers in Maple...

It might seem like a small thing, but is there a way to separate the text from the numbers? It's only for optical purposes, as i think it looks better.

Thank you,

MO

## Could not get the solution...

Hi everyone, I am trying to dsolve a ode but could not get the answer, could anyone please help me or guide me what's wrong with my worksheet

 >
 >
 (1)
 >
 (2)
 >
 >
 (3)
 >
 (4)
 >

## Maple getting stuck when changing limits of sum...

When I type the command

sum(2^n, n=0..N)

Maple calculates it correctly. However, if I then go back to that expression and click on it to change the value of N, Maple tries to execute something before I hit enter. It won't stop unless I press the Interrupt button, and after that I have to insert some other calculation, e.g. 1+1, for it to work once again.

This happens even on completely new files and for any explicit values of N.

Why is this happening?

## Plot a parabola...

Hello! I am trying to plot a parabola given by the equation x=y^2. I used the following code

plot(y^2, y = -1 .. 1, color = blue, thickness = 3, title = "T1.1 x=y^2 [ECE]")

but my plot looks like this

I want it to have the x-axis horizontally displayed and the y-axis to be vertically displayed. Something like this

Thank you!

## Maple random walk question...

I think I am doing this question right. Is there anything to improve the code?

## Maple river flow question graph plotting ...

How can I get exactly graph plotting as the sample show? All blue area under the curve.

 >
 (1)
 >
 >

## improvements in Latex for trig(x)^n expressions...

When Maple converts sin(x)^n to Latex, the result remain  sin(x)^n.  But in Mathematical typesetting, this is normally written as sin^n(x).   Ofcourse this is only for Latex. In Maple code this not valid.

Is it possible to change Maple's Latex to make it do this automatically? Mathematica does this automatically. Here is an example

restart;
expr:=sin(x)^3+cos(3*x)^5;
Physics:-Latex(expr)

\sin \left(x \right)^{3}+\cos \left(3 x \right)^{5}

Which when compiled gives

Compare to Latex generated by Mathematica

Which compiles to

Which is more standard in books and papers, than Maple's version.

Both Maple's Physics:-Latex and latex() command do the same thing.

Is there a way to make it generate the improved version for latex?

Maple 2020.1

## automatic replacements of exp(x)^n by exp(x*n) ?...

sometimes I get intermediate expressions generated from other operations that contain terms such as exp(x)^n in them. As an example, exp(x)^3.  In Mathematica, it automatically replaces these by exp(3*x). But in Maple I need to force this change.

For purposes of Latex only, I like to change these terms to exp(3*x) before converting the whole expression to Latex, as it is looks much better that way.

expr:=exp(x)^3;
Physics:-Latex(expr)

\left({\rm e}^{x}\right)^{3}

expr:=exp(3*x);
Physics:-Latex(expr)

{\rm e}^{3 x}



I found that doing simplify(expr,exp)  does the trick. It changes exp(x)^n to exp(n*x). But I am worried about applying this whole simplification command to the whole expression, which can be very large, and do not want to change it all yet.

I just want to change any occurance of exp() there, and nothing more.

I tried using subsindent to do that, but it does not work on terms in denominator

restart;
expr:=exp(x)^3*sin(x)+3/(exp(x)^n);
subsindets(expr,'exp(anything)^anything',f->simplify(f,exp))

I tried

subsindets(expr,'1/exp(anything)^anything',f->simplify(f,exp))

and it did not work.

I am still not good at subsindent. How to make it change all exp(x)^n to exp(n*x) everywhere?

## How to detect if an expression contains a radical?...

Hello

I need to detect if different expressions contain a radical. For example

aaa := X3*(alpha[2, 8]*(sqrt(X2/alpha[1, 7])*alpha[3, 8] + X1*alpha[3, 6])*X2 + X3*(alpha[2, 8] + alpha[3, 9]/2))/(X2*alpha[2, 8])


As can be noticed there is a square root in the expression.

I have tried type(expr,sqrt) and has but to no avail. (I am not sure if I use them as they should though).

Many thanks

Ed

## Maple Crash wipes out initialization and worksheet...

Hi:

Every once-in-a-while Maple crashes due to a bug in numerical integration that I reported ages ago, but was never fixed (or if it was, I was never told). Anyway, this time, in addition to crashing, it wiped out my worksheet, and froze the machine. When I recovered, Maple had lost all memory of my preferences, recent files, etc - it was as if I had a clean installation.

I restored the link to the usual style file I use, but it still refuses to give me back the style I want - that is - the classical worksheet. Every command I enter now requires F5 or I will get 2D input which I hate. Does anyone know where the preferences, probably an .INI file, are kept, so I can restore it from an older version of Maple.

Thank you

## different value are obtaining...

Hi, i am using solve and solve command to find the root but when i used fsolve command to separate only real root, could separate all roots, can anyone correct me, please

 >
 >
 (1)
 >
 (2)
 >
 (3)
 >

## modp1(('Multiply')(...))...

Hi there.

As we all know if we multiply two polynomials f(x) and g(x) of degrees m and n respectively we get polynomial h(x)= f(x)*g(x) of degree m+n and with m+n+1 coefficients in general. Function modp1(('Multiply')(...)) doing this very well. But sometimes we don't need full resulting h(x) - just subset of monomials and subset of coefficients of h(x) - so we don't need to calculate all m+n+1 coefficients of h(x) and waste time and resources for that.

I would request some additional rework of modp1 package: by adding to modp1(('Multiply')(...)) two optional parameters - degrees of first and last calculating coefficients of h(x).

For example:

h:=modp1(Multiply(f, g,n-1,n+1), p) could calculate only monomials with n-1, n and n+1 degrees and set other monomials to zero.

Or maybe it should be new function:

h:=modp1(Multiply_Truncate(f, g,n-1,n+1), p)

Is it possible?

It would be great and very efficient in many tasks.

Thank you.

 >
 >
 (1)
 >
 (2)
 >
 (3)
 >
 (4)
 >
 >