Post Reply 
Produce Formular expression
06-07-2023, 11:50 PM
Post: #4
RE: Produce Formular expression
(06-07-2023 08:50 PM)McQ Wrote:  
(06-07-2023 08:13 PM)Joe Horn Wrote:  Just FYI, your goal can be reached without any programming. normal(POLYEVAL(coeffs,x)) in CAS returns the polynomial in x whose coefficients are in the list stored in 'coeffs'. Be sure to del(x) beforehand, or the polynomial will be evaluated using the value that's stored in x.

Hi Joe,
at first I did it completely wrong,now it works fine.

Do you have a proposal how I can get the result with X instead of x ? I did not manage to get a formula result while using normal(POLYEVAL(coeffs,X)) because with x (small) I cannot copy it to app Function which accepts X (big) only and the function replace seems not to work here.

very best regards
Achim

In Home (and in ordinary, non-CAS programs) try this:

CAS.normal(POLYEVAL(coeffs,'X'))

The leading "CAS." forces the following expression to be run by CAS, and the single quotation marks around the 'X' tell Prime to leave 'X' in symbolic form and not to replace it with its stored value.

<0|ΙΈ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Produce Formular expression - McQ - 06-07-2023, 08:02 PM
RE: Produce Formular expression - Joe Horn - 06-07-2023, 08:13 PM
RE: Produce Formular expression - McQ - 06-07-2023, 08:50 PM
RE: Produce Formular expression - Joe Horn - 06-07-2023 11:50 PM
RE: Produce Formular expression - McQ - 06-08-2023, 01:35 AM



User(s) browsing this thread: 2 Guest(s)