Mathematical Principles for Scientific Computing and Visualization  
http://www.farinhansford.com/books/scv
by Gerald Farin and Dianne Hansford


This notebook demonstrates function spaces
Two cubic curves are combined linearly to form another cubic curve.


See Chapter 7: Background: Numerical Calculus for details.

Updated May 2008

(* Set output folder to folder this file lives in *)

(SetDirectory[ToFileName[Extract["FileName"/.NotebookInformation[EvaluationNotebook[]],{1},FrontEnd`FileName]]];) 

fctplot=Plot[{4 (x^3)-2 x+2, -2 (x^3)+2 x-2, (x^3)},{x,-1,1},PlotStyle->{{Thickness[0.01],GrayLevel[0.7]},{Thickness[0.01],GrayLevel[0.7]},{Thickness[0.01], GrayLevel[0.0]}},
Ticks->None, AxesStyle->Directive[GrayLevel[0.0],Thickness[0.0025]],ColorOutput->CMYKColor]

Export["comb_cubic.eps",fctplot]