CellPrint[TextCell[Quiet[cdf =Manipulate[Column[{ "Fórmula usada:\n"<>ToString@ TraditionalForm[(("f")^("("<>ToString[u]<>")"))[x0]]<>"≈"TraditionalForm@formulas[[u]], Dynamic@SuFunc}],Style[proposito,Bold,10],Spacer[{100,3}],
 (*Inicio contadores *)
 {{u,1,"Elija el orden de la derivada para aproximar: "},1,4,1,ControlType->SetterBar},
{{ff,Cos[x],"f(x) = "},ControlType->InputField},
{{punto,2,"x0 = "},ControlType->InputField},
{{hache,0.1,"h = "},ControlType->InputField},
Button["Calcular", Dynamic@ SuFunc]
(* Fin contadores *)
,Alignment->Center,Deployed->True,AppearanceElements->"ResetButton",LocalizeVariables->True,ContinuousAction->False,FrameLabel->{{None,None},{Column[{,Row[{Style["Autores: Juan Félix Ávila Herrera y Enrique Vílchez Quesada",Bold,10,RGBColor[0,0,0.5]]}],Row[{Style["Escuela de Informática | Universidad Nacional de Costa Rica",Bold,10,RGBColor[0.5,0.1,0]]}]},Center],Style["Aproximación numérica de las primeras cuatro derivadas ", Bold,14, RGBColor[0,0.33,0.33]]}},
Initialization:>(
formulas ={(1/(60 h))(-137 f[x0]+300 f[h+x0]-300 f[2 h+x0]+200 f[3 h+x0]-75 f[4 h+x0]+12 f[5 h+x0]),(1/(12 (h^2)))(45 f[x0]-154 f[h+x0]+214 f[2 h+x0]-156 f[3 h+x0]+61 f[4 h+x0]-10 f[5 h+x0]),(1/(4 (h^3)))(-17 f[x0]+71 f[h+x0]-118 f[2 h+x0]+98 f[3 h+x0]-41 f[4 h+x0]+7 f[5 h+x0]),(1/(h^4))(3 f[x0]-14 f[h+x0]+26 f[2 h+x0]-24 f[3 h+x0]+11 f[4 h+x0]-2 f[5 h+x0])};
;
 
Clear[f];

(*($PreRead=(#/. s_String/;StringMatchQ[s,NumberString]&&Precision@ToExpression@s==MachinePrecision:>s<>"`12."&));*)
proposito ="Propósito: Aproximar las primeras cuatro derivadas y usarlas para aproximar el polinomio de Taylor de cuarto grado";
SuFunc := Module[{aux, resp, pt, coef},
resp[x_] := If[x==Round[x], x,ToString[x, InputForm]<> "≈"<>ToString[Sign[x]AccountingForm[Abs@N@x]]];
f[t_] := ff/.x->t;
aux =formulas[[u]]/.{x0-> punto, h->hache, f->g };
aux = ToString@ TraditionalForm[(("f")^("("<>ToString[u]<>")"))[punto]]<>" ≈ "<>ToString[Sign[aux]AccountingForm[Abs@aux]]<>"\nUsando Mathematica: "<> ToString@ TraditionalForm[(("f")^("("<>ToString[u]<>")"))[punto]]<>" = "<>ToString[resp[D[f[x], {x, u}]/.x->punto]];
pt =f[punto]+(∑_(k=1)^4)(coef =formulas[[k]]/.{x0-> punto, h->hache, f->g };
 (coef/(k!))*(((x-punto))^k));
aux = aux <>"\n----------------------------------------------\nPolinomio de Taylor de orden 4 (usando las fórmulas):\n(Subscript[P, 4])(x) ="<>ToString[N@Expand@pt, InputForm];
Clear[f];
aux
];
Dynamic@SuFunc
)]],"Text"]]

CloudDeploy[cdf,Permissions->"Public"]