1197 Reputation

12 years, 195 days

Procedures using other saved procedures...

Maple 2022

I have 5 procedures saved in my library. Say Proc1, Proc2, Proc3, Proc4 and Proc5. They all work ok.

Proc5 calls Proc4 which calls Proc3 which calls Proc2 which calls Proc1. That is fine if I read them all in to the dodument.

Is it ok ok to put read commands in procedures 5..2 so I don't have to manually load them all myself into a new document or is there a better way to do this. These procedures are not part of a package.
I hace set

```currentdir();
"C:\Users\Ronan\Documents\maple\Alibrary\Procedures"

```

which is where the procedures are stored. If I just load Proc5 it doesn't find the other procedures

Equations are acting inert...

Maple 2022

I have a matrix and generate difference tables from it's diagonals. Works fine. Then I make a polynomial from the first row of the difference table. I have three polynomials. They are all acting inert, just will not evaluate.

I cannot see what the problem is.

 i) Recurrence relation

 viia)  General formula for diagonals:- Select diagonal  & Difference Table procedures

The equations do not evaluate. They are acting inert

Test if question...

Maple 2022

I have a whole lot of conditions to test on the signum of answers. This gets difficult to read so I am wondering could something like the following be done?

```a, b, c, d := 1, -1, 1, -1;
if a, b, c, d = 1, 0, -1, -1 then
print("foo");
end if;
```

The above obviously doesn't work. The reason I would like to do this is it would be simple to read the patterns of 1's and 0's.

Any ideas?

Select powers and coeffs on a general ty...

Maple

I was experimenting on and found coeff and degrees  do not work with algebraic type powers. So I set aboud dismanteling  a example polynomial. I certainly went around the houses doing this. I wanted to put the powers and coefficinets of x in an array.

I sure there must be a simpler way.