Carl Love

Carl Love

28070 Reputation

25 Badges

13 years, 27 days
Himself
Wayland, Massachusetts, United States
My name was formerly Carl Devore.

MaplePrimes Activity


These are replies submitted by Carl Love

If the boundary condition f(1) = 0 is changed to f(1) = c, and then you test out various values of c, dsolve seems to have serious objections to any value of c less than about 0.485. Changing option values abserr or maxmesh doesn't seem to help. So, are you sure about f(1) = 0?

@emma hassan In your colleague's code, A is the band matrix. In your code, A is a vector, and is the band matrix. You need to multiply either

(row vector) . matrix = (new row vector)

or

matrix . (column vector) = (new column vector)

And the left-right order of those products matters! To switch a row vector to a column vector, use Transpose, or a shortcut is to use %T as an exponent.

@emma hassan In your colleague's code, A is the band matrix. In your code, A is a vector, and is the band matrix. You need to multiply either

(row vector) . matrix = (new row vector)

or

matrix . (column vector) = (new column vector)

And the left-right order of those products matters! To switch a row vector to a column vector, use Transpose, or a shortcut is to use %T as an exponent.

@Preben Alsholm Thank you, Preben, for the memory jog. I've updated the main Answer to incorporate your suggestion.

@Preben Alsholm Thank you, Preben, for the memory jog. I've updated the main Answer to incorporate your suggestion.

@vshyam Wikipedia and crowd-sourcing are great.

Are you trying some special numerical integration that Maple can't otherwise handle? Or are you just studying the method?

@vshyam Wikipedia and crowd-sourcing are great.

Are you trying some special numerical integration that Maple can't otherwise handle? Or are you just studying the method?

Note that Maple does allow for an empty Matrix, Matrix(0,0) or simply Matrix(), whose determinant is 1. So you don't need to treat n = 0 as a separate case.

Note that Maple does allow for an empty Matrix, Matrix(0,0) or simply Matrix(), whose determinant is 1. So you don't need to treat n = 0 as a separate case.

@williamov Use command add to do sums with specific numeric arguments.

add(XXXX, n= 0..3);

But like I said before, I DID NOT INTEND FOR YOU TO USE DetAn IN A SUMMATION. If it could be done in Maple, I would've done it in the first place. I intended for you to do this:

seq(DetAn(k), k= 0..9);

 

@williamov Use command add to do sums with specific numeric arguments.

add(XXXX, n= 0..3);

But like I said before, I DID NOT INTEND FOR YOU TO USE DetAn IN A SUMMATION. If it could be done in Maple, I would've done it in the first place. I intended for you to do this:

seq(DetAn(k), k= 0..9);

 

@williamov I did not intend for the procedure DetAn to be used in a summation! I wrote it so that you could look at the determinants. It can only be called with specified integer arguments. You cannot "convert" a symbol into an integer just by using a convert command!

@williamov I did not intend for the procedure DetAn to be used in a summation! I wrote it so that you could look at the determinants. It can only be called with specified integer arguments. You cannot "convert" a symbol into an integer just by using a convert command!

@Alejandro Jakubi Thank you for bringing this shocking and sad situation to my attention. Unfortunately, I am seeing more and longer sections of code written in the 2d input and it is more difficult to read and to debug.

@Alejandro Jakubi Thank you for bringing this shocking and sad situation to my attention. Unfortunately, I am seeing more and longer sections of code written in the 2d input and it is more difficult to read and to debug.

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