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,"Orden de la derivada para aproximar: "},2,2,2,ControlType->None},
{{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 segunda derivada usando la fórmula centrada ", Bold,14, RGBColor[0,0.33,0.33]]}},
Initialization:>(
formulas ={nada,  (1/(h^2))( f[h+x0]-2f[x0]+  f[ x0-h])};
 
Clear[f];
u=2;

(*($PreRead=(#/. s_String/;StringMatchQ[s,NumberString]&&Precision@ToExpression@s==MachinePrecision:>s<>"`12."&));*)
proposito ="Propósito: Aproximar la segunda derivada usando la fórmula centrada";
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]];
Clear[f];
aux
];
Dynamic@SuFunc
)]],"Text"]]

CloudDeploy[cdf,Permissions->"Public"]