Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Map-range/Axiom/map-range-1.axiom
Normal file
7
Task/Map-range/Axiom/map-range-1.axiom
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
)abbrev package TESTP TestPackage
|
||||
TestPackage(R:Field) : with
|
||||
mapRange: (Segment(R), Segment(R)) -> (R->R)
|
||||
== add
|
||||
mapRange(fromRange, toRange) ==
|
||||
(a1,a2,b1,b2) := (lo fromRange,hi fromRange,lo toRange,hi toRange)
|
||||
(x:R):R +-> b1+(x-a1)*(b2-b1)/(a2-a1)
|
||||
2
Task/Map-range/Axiom/map-range-2.axiom
Normal file
2
Task/Map-range/Axiom/map-range-2.axiom
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
f := mapRange(1..10,a..b)
|
||||
[(xi,f xi) for xi in 1..10]
|
||||
Loading…
Add table
Add a link
Reference in a new issue