Pascal triangle to a matrix
|
11-22-2019, 03:57 PM
Post: #3
|
|||
|
|||
RE: Pascal triangle to a matrix
(11-22-2019 08:45 AM)Tonig00 Wrote: But the program stops in the line "m1(n,m):=…", and says: "Invalid input". You get an error because: - You need to define m1 as a matrix - Matrix indices start at 1 and not 0 So here is a working version of your program : Code: EXPORT Tri_Pa(f) Note that you can also generate the same matrix using just the MAKEMAT function: Code: EXPORT Tri_Pa(f) |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Pascal triangle to a matrix - Tonig00 - 11-22-2019, 08:45 AM
RE: Pascal triangle to a matrix - toml_12953 - 11-22-2019, 01:07 PM
RE: Pascal triangle to a matrix - Didier Lachieze - 11-22-2019 03:57 PM
RE: Pascal triangle to a matrix - Tonig00 - 11-22-2019, 07:14 PM
|
User(s) browsing this thread: 1 Guest(s)