Problem on displaying user defined function as output
|
11-03-2022, 09:09 AM
Post: #3
|
|||
|
|||
RE: Problem on displaying user defined function as output
(11-02-2022 08:20 PM)ftneek Wrote: Assuming the coefficients are stored in L0, you could try this: Thank you for replying, I have tried similar idea but as FALL(n) has been implemented, it would directly simplify to some products like: FALL(4,x) ---->x*(x-1)*(x-2)*(x-3). So my idea is to use string manipulation, may be a bit clumsy as follows: Code:
The result is good, input: COEFF2FALL(x,{0,1,7,6,1}) output:"+1*FALL(1,x)+7*FALL(2,x)+6*FALL(3,x)+1*FALL(4,x)" The only downside is the additional quotation marks, expr is need to further use. I am not sure if the output could be produced without "". |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Problem on displaying user defined function as output - gamma057721 - 11-01-2022, 06:24 AM
RE: Problem on displaying user defined function as output - ftneek - 11-02-2022, 08:20 PM
RE: Problem on displaying user defined function as output - gamma057721 - 11-03-2022 09:09 AM
|
User(s) browsing this thread: 1 Guest(s)