Carl Love

## 27214 Reputation

11 years, 345 days
Himself
Wayland, Massachusetts, United States
My name was formerly Carl Devore.

## Continuity obvious...

One reason that the absolute-value form might be preferred over the piecewise form is that the former makes the continuity obvious. One reason that the absolute-value form might be preferred over the list-of-points form is that most symbolic computation commands will not take the latter.

## Slight simplification...

@whenyourestrange Actually, my command above can be simplified slightly: One of the two zero vectors (< 0 | 0 >), it doesn't matter which one, can be removed.

## Slight simplification...

@whenyourestrange Actually, my command above can be simplified slightly: One of the two zero vectors (< 0 | 0 >), it doesn't matter which one, can be removed.

## `if`(...)...

@williamov To put if inside an expression, do

`if`(assigned(h251), h251, 0)

## `if`(...)...

@williamov To put if inside an expression, do

`if`(assigned(h251), h251, 0)

## Two ways to get out of the loop...

@HDN46 There are only two ways to get out of the loop for n from 0 to 19: Either n goes above 19, or the break statement (after the then in the loop) is executed. The break is executed when we have a non-solution: either a non-integer was encountered (r<>0) or two consecutive zeroes were found. Otherwise, we have a solution, and n goes above 19, so it is 20

## Two ways to get out of the loop...

@HDN46 There are only two ways to get out of the loop for n from 0 to 19: Either n goes above 19, or the break statement (after the then in the loop) is executed. The break is executed when we have a non-solution: either a non-integer was encountered (r<>0) or two consecutive zeroes were found. Otherwise, we have a solution, and n goes above 19, so it is 20

## procedure trouble?...

@marc005 What trouble did you have trying to make it into a procedure?

## procedure trouble?...

@marc005 What trouble did you have trying to make it into a procedure?

## O is protected...

Capital O is a protected name. I am skeptical about your attempt to use it as a variable.

1. Here, what do a and b represent?

They are the positions of the first and second letters of a digraph in the "long form" of the key. For example, if the key is the example that I used before,

"PLAYFIREXMBCDGHKNOQSTUVWZ"

and the digraph is "HI", then a = 15, b = 6.

2. When you write the command (r1,c1):=to_row_col(a), are you substituting the value of 'a' into 'n' in the to_row_col expression above?

Yes.

3. If I had (r1,c1)=(2,3) [2nd row,3rd column] then how would I find to_row_col(a)?

If r=2 and c=3, then a = (2-1)*5+3 = 8. In other words, row 2 column 3 is the 8th position in the long form key. To go the other way

8-1 = 7.

Divide 7 by 5 with remainder, obtaining quotient q=1 and remainder m=2. Then the row is q+1 = 2 and the column is m+1 = 3.

1. Here, what do a and b represent?

They are the positions of the first and second letters of a digraph in the "long form" of the key. For example, if the key is the example that I used before,

"PLAYFIREXMBCDGHKNOQSTUVWZ"

and the digraph is "HI", then a = 15, b = 6.

2. When you write the command (r1,c1):=to_row_col(a), are you substituting the value of 'a' into 'n' in the to_row_col expression above?

Yes.

3. If I had (r1,c1)=(2,3) [2nd row,3rd column] then how would I find to_row_col(a)?

If r=2 and c=3, then a = (2-1)*5+3 = 8. In other words, row 2 column 3 is the 8th position in the long form key. To go the other way

8-1 = 7.

Divide 7 by 5 with remainder, obtaining quotient q=1 and remainder m=2. Then the row is q+1 = 2 and the column is m+1 = 3.

## {3,4}?...

I understand where b and d come from, that's just

X minus {indices}(T, 'nolist');

But where do you get {3,4} and 4 from?

## Okay...

@mutaz Okay, then I guess you should ignore what I said about x2. But I was only basing that on what you said in the original question: You included x2 and called it a PDE.