Menu

Multiple graphing in wxmaxima

MoiseiB
2014-02-22
2014-03-01
  • MoiseiB

    MoiseiB - 2014-02-22

    Hello! I am doing an assignment for the university. I need to interpolate a function using cubical splines and then plot the result. The question is, how to graph several functions in different ranges in one window?

     

    Last edit: MoiseiB 2014-02-22
  • Ago77

    Ago77 - 2014-03-01

    Simple example:

    load(interpol);

    R: matrix([1/30, 0.28688], [7/30, 0.30813], [14/30, 0.32625], [1, 0.39000], [2, 0.47750], [3, 0.60875], [4, 0.70875],
    [5, 0.80500], [6, 0.92625], [7, 0.96875], [8, 1.02000], [9, 1.07375], [10, 1.11250], [11, 1.15750], [12, 1.20250])$

    cspline(R)$

    S(x):=''%$

    wxdraw2d(xlabel="time", ylabel="rate", yrange=[0, 1.5], line_width=2, line_width=2,
    color=dark-turquoise, explicit(S(x), x, 0, 12.1),
    point_type=filled_circle, point_size = 1, color=orange-red, points(R))$