## 180 Reputation

5 years, 305 days

## fieldplot3d - Problems calling procedure...

Maple

I have noticed that fieldplot3d can fail when calling a procedure that contains if statements.  It appears that fieldplot3d is attempting to evaluate the statements within the procedure, instead of simply calling the procedure with numerical values.

We are still on lockdown in the UK, and this has kept me amused for a while now.  But I have run out of ideas and could really use some help!

fieldplot3d_and_if_statements.mw

## Calculating dot products using spherical...

Maple

I would like to be able to calculate 3D vector dot products using the spherical coordinate system, but so far I have not been sucessful.  A few suggestions would be greatly appreciated!

These are my failed attempts:

Calculating dot products using spherical coordinates

With Physics Vectors

 (1.1)

 (1.2)

 (1.3)

I was hoping for the dot product to be calculated using the spherical coordinate system, but this is the cartesian dot product.

With Vector Calulus

 (2.1)

 (2.2)

 (2.3)

This is also the cartesian dot product.

## How to find a Perpendicular Vector...

Maple

I am looking for an elegant way in which to find a vector that is perpendicular to another vector.  The attached worksheet shows one method, but this can result in a divide by zero error.  I could write a procedure to detect and avoid the divide by zero error, but this feels like a sledgehammer to crack a nut :-)

Another method might be to rotate the vector by PI/2, but I'm not sure how to do this.

Any suggestions would be gratefully received!

Perpendicular_Vectors.mw

## Study Maxwell’s Equations...

Maple

I'm attempting to use Maple to study Maxwell's Equations, but as a newbie to Maple, I quickly became stuck :-)

For some context, this link shows how it is possible to accomplish this using Mathematica:

https://www.wolfram.com/mathematica/new-in-10/inactive-objects/study-maxwells-equations.html

This is how I have attempted the same in Maple:

Maxwell's Equations

Initialise

 (1.1)

 (1.2)

Maxwell's Equations

 (2.1)

 (2.2)

 (2.3)

 (2.4)

Constitutive Relations

 (3.1)

 (3.2)

Solution

We need to get the Curl of H, to take the Curl of both side of Maxwell_1:

 (4.1)

Now substitute B for H:

 (4.2)

OK, we manage to get Curl of H, so now we need to substitute the Curl of H with an expression in D.

 (4.3)

Well that didn't work, so try to seperate the Curl of H so that we can substitute for D.

 (4.4)

 (4.5)

 (4.6)

 (4.7)

 (4.8)

 >

I need to be able to rearrange equation 4.3 so that I can substitute for Curl of H using Maxwell_2.  Any suggestions would be gratefully received!