Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/PVS/Bernstein/   (PVS Prover Version 6.0.9©)  Datei vom 28.9.2014 mit Größe 971 B image not shown  

Quelle  boxes_def.pvs

  Sprache: PVS
 

boxes_def : THEORY
BEGIN

  IMPORTING util,
            structures@listn[real],
     reals@product_below

  Box(n:posnat) : TYPE = [#
    vars_lb : listn(n),
    vars_ub : listn(n)
  #]

  setnth_box(v:nat,f:[real->real],n:posnat)(box:Box(n)) : Box(n) = (#
    vars_lb := setnth(box`vars_lb,v,f),
    vars_ub := setnth(box`vars_ub,v,f)
  #)

  map_box(n:posnat,f:[listn(n)->listn(n)])(box:Box(n)) : Box(n) = (#
    vars_lb := f(box`vars_lb),
    vars_ub := f(box`vars_ub)
  #)

  unitbox(n:posnat) : Box(n) = (#
    vars_lb := array2list(n)(zeroes),
    vars_ub := array2list(n)(ones)
  #)

  Boxes(n:posnat) : TYPE = [#
    inside,
    outside,
    unknown : list[Box(n)]
  #]

  mk_boxes(n:posnat,inside,outside,unknown:list[Box(n)]) : Boxes(n) = (#
    inside  := inside,
    outside := outside,
    unknown := unknown
  #)

  volume(n:posnat,box:Box(n)): real =
    product[below(n)](0,n-1,LAMBDA(i:below(n)):nth(box`vars_ub,i)-nth(box`vars_lb,i))
    
END boxes_def

Messung V0.5 in Prozent
C=100 H=72 G=86

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-06-14) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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 und die Messung sind noch experimentell.