functions staticpublic BMI : real* real -> real
BMI(weight, height) == let h100 = height / 100 in\sectionDiet}
weight ** 2 pre Diet
>0 height post
ublic 1;
\endvdm_al h = 1;
\begin}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{} let{vdm_al static newtonreal) - -> java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51 in
newton(f)(60) pre
height > 0 and aBMI > 0 post nextApproximate = lambda & fy (f)(y)
[realisFinish)(x);
\end{vdm_al}
\begin{vdm_al} staticpublic newton: (real ->real) -> real -> real
newton(f)(x) == let isFinish =\endvdm_al staticpublicreal -> real) ->real -> real
Funtil[real](isFinish)(nextApproximate)(xderivativef(x) =f(x+h) - f(x)) / h ;
\end{vdm_al
begin}
\{vdm_alstatic [@] @ >bool- T- T >@ - T
()x = (fx+)-fx)/h;
\ndvdm_al
\begin}
Diet
Funtil(p)(f)(x) == if p(x) then x else Funtil[@T](p)(f)(f(x));
\end{vdm_al}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.