## 140 Reputation

6 years, 164 days

## Format -> style...

This is not that intuitive but it can be done:

1) Go to "Format -> Styles" and modify the style options that are in the left column.

2) Once you have decided upon a style, save it as a file and then you can load the file from "format -> Manage style sets".

3) Select your style under the "User defined style set".

When opening new worksheets they should now use this style by default.

- Yeti

## Standard normalisation process?...

You have a wavefunction psi(x). We know that:

Substitute the form for your wavefunction with a normalisation constant at the front of it (say A) into this expression, and then solve for A. That will give you the normalisation condition and thus the normalised wavefunction Psi(x)_norm = A*psi(x).

## File -> Export As...

You can have Maple export the plot as an Encapsulated Postcript file (EPS) via File -> Export As, then select LaTeX under the options. This will produce an eps file of the plot. In LaTeX you can then do the following to plot it:

\includegraphics[Insert your plot options here]{name of file.eps}

(You will need the graphicx package in your preamble for this command to compile correctly)

## Convert rational...

Would convert(insert fraction here , rational) not do the trick? I believe cfrac was depreciated in favour of confrac:

http://www.maplesoft.com/support/help/Maple/view.aspx?path=convert/confrac

More on the convert function here:

https://www.maplesoft.com/support/help/Maple/view.aspx?path=convert

## Rewrote the code...

I have managed to fix the issue by using a slightly different means of doing the numerical integration, although the reasons as to why this new script works and the other one does not are not entirely clear.

See the following script:

Numerical_integration_HF.mw

It may run slow but I have bumped up the epsilon on both integrals and increased the number of digits being carried through. If you lower these values then it will be much faster.

It can now go across the entire range without any issues and no hanging. Your point about the rubbish dump Carl Love is an interesting one. It seems counter intuitive!

Yeti

## Solution...

I am not entirely certain what you are asking but I think this does what you are looking for. I have used arrays to deal with the input rather than a table. It seemed you wanted to replace each of the first elements with the number 2 whilst keeping the second number the same. The third part you seem to change but it is not clear on what rule you want to apply but you can easily modify the following code to deal with it. Arrays are very versatile in Maple and they allow for easy access to all the elements which you can extract separately and apply operations to them:

restart:
Table:=table[(1,100)=1,(1,200)=12,(2,300)=33,(3,100)=1,(1,300)=43,(3,200)=52,(2,100)=31,(2,200)=22,(3,300)=3]:

A:=Array(1..nops(Table)):
for i from 1 to nops(Table) do
A[i]:=2,op(1,op(i,Table))[2],op(2,op(i,Table));
end do:
A;

- Yeti

## remove_RootOf...

The link to the mw worksheet is not working for me, but you may find this useful:

http://www.maplesoft.com/support/help/Maple/view.aspx?path=DEtools%2Fremove_RootOf

## Look in the initilisation files...

If you look in the Maple initilisation files in the downloaded files, you need to change the directory path for libname to your own path. Have you done that?

## Can use a code edit region...

You could use a code edit region by doing:

Insert -> Code edit region. (You can then make the box larger on screen. It is not the most ideal option but it does work.)

See this file with your code:

Code_edit_region.mw

-Yeti

## Cheating it...

One "botched" way of doing it, is to give values to the variables. As they are positive variables, give them any integer values greater than one and it will then simplify it to -I.

 1 2 3 Page 3 of 3
﻿