Carl Love

Carl Love

27214 Reputation

25 Badges

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

MaplePrimes Activity


These are replies submitted by Carl Love

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.

@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.

@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.

@williamov To put if inside an expression, do

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

@williamov To put if inside an expression, do

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

@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

Does that answer your question?

@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

Does that answer your question?

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

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

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

@jenniferchloe You asked:

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.

You asked:

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.

You asked:

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.

 

@jenniferchloe You asked:

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.

You asked:

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.

You asked:

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.

 

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?

@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.

No need to reply.

@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.

No need to reply.

First 657 658 659 660 661 662 663 Last Page 659 of 698