Post Reply 
Evaluation symbol...
07-14-2015, 10:32 PM
Post: #4
RE: Evaluation symbol...
ok,
the best way could be this:
Code:

EXPORT lagrangeValue(lista_x, lista_y, xValue)
BEGIN
  LOCAL y, temp;
  // y:= unapply(lagrange(lista_x, lista_y), X);
  temp:= lagrange(lista_x, lista_y);
  y:= EVAL(EXPR(temp+"|X="+xValue));
  RETURN y;
END;

my input is:
lagrangeValue({29.43,30.97,27.69,28.11,31.58,33.05},{0.4913598528,0.5145891926, 0.4646875083, 0.4711658342, 0.5236885653, 0.5453707057}, 30)
(list of value about 30, list of sines, xValue to get=30)
I get 0.500000000018 instead of 0.5, but it's almost ok.

Salvo

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Evaluation symbol... - salvomic - 07-14-2015, 08:24 PM
RE: Evaluation symbol... - Arno K - 07-14-2015, 09:57 PM
RE: Evaluation symbol... - salvomic - 07-14-2015, 10:06 PM
RE: Evaluation symbol... - salvomic - 07-14-2015 10:32 PM
RE: Evaluation symbol... - Arno K - 07-15-2015, 07:12 AM
RE: Evaluation symbol... - salvomic - 07-15-2015, 07:33 AM



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