construct branched function from list

Angsüsser shared this question 4 years ago
Answered

Is it possible to construct a branched function (a cubic spline in this case) from a list:

Given a list of lists:

{ {u1,l1,a1,b1,c1,d1}, {u2,l2,a2,b2,c2,d2}, ........} describing a cubic spline

it should yield

If(u1<=x<=l1, a1+b1*x+c1*x^2+d1*x^3, u2<=x<=l1, a2 + b2*x+c2*x^2+d2*x^3, .....)

Can this task be performed with Geogebra-Script - so that I can construct a custom-tool or is there no way around to use Javascript (no custom tool possible)

Best Answer
photo

do you mean h(x) from M?

try the custom tool if you need


comment: f(x) can be enough good for you

Files: foro.ggb

Comments (3)

photo
2

do you mean h(x) from M?

try the custom tool if you need


comment: f(x) can be enough good for you

Files: foro.ggb
photo
1

@mathmagic

Thank you for your answer - seems perfect!

I believe I can use this for my project! Thanx again and

"carpe diem"

photo
1

Can be tagged as answered - foro.ggb is exact what I needed!

© 2023 International GeoGebra Institute