(* ::Package:: *)

(************************************************************************)
(* This file was generated automatically by the Mathematica front end.  *)
(* It contains Initialization cells from a Notebook file, which         *)
(* typically will have the same name as this file except ending in      *)
(* ".nb" instead of ".m".                                               *)
(*                                                                      *)
(* This file is intended to be loaded into the Mathematica kernel using *)
(* the package loading commands Get or Needs.  Doing so is equivalent   *)
(* to using the Evaluate Initialization Cells menu command in the front *)
(* end.                                                                 *)
(*                                                                      *)
(* DO NOT EDIT THIS FILE.  This entire file is regenerated              *)
(* automatically each time the parent Notebook file is saved in the     *)
(* Mathematica front end.  Any changes you make to this file will be    *)
(* overwritten.                                                         *)
(************************************************************************)



Clear[v\[Phi],s\[Phi],a,b,x]
v\[Phi][{a_,b_}][x_]:= ((3 a-b-2 x) (b-x)^2)/ ((a-b)^3) 
s\[Phi][{a_,b_}][x_]:= ((x-a) (b-x)^2)/(a-b)^2
{a,b}=RandomReal[{0,1},2];
{va,sa}={1.2,3.4};
cubic[x_]=va v\[Phi][{a,b}][x]+sa  s\[Phi][{a,b}][x];
Plot[ 
cubic[x],
{x, Min[a,b],Max[a,b]},
Epilog->{
{Red, Line[{{a,0},{a,10}}]},
{Green, Line[{{b,0},{b,10}}]}
}
]



