ideas-math-1.2: src/Domain/Math/Numeric/Examples.hs
-----------------------------------------------------------------------------
-- Copyright 2015, Open Universiteit Nederland. This file is distributed
-- under the terms of the GNU General Public License. For more information,
-- see the file "LICENSE.txt", which is included in the distribution.
-----------------------------------------------------------------------------
-- |
-- Maintainer : johan.jeuring@ou.nl
-- Stability : alpha
-- Portability : portable (depends on ghc)
--
-- Example exercises from ActiveMath
--
-----------------------------------------------------------------------------
-- $Id: Examples.hs 7527 2015-04-08 07:58:06Z bastiaan $
module Domain.Math.Numeric.Examples
( fractionExamples
, fractionLiberalExamples
) where
import Domain.Math.Expr
import Ideas.Common.Exercise
import Prelude hiding ((^))
fractionExamples :: Examples Expr
fractionExamples =
level Easy
[ 3/5 + 1/3
, 1/2 + 2/4
, 3/2 + 2/3
, 7/11 + 3/11 ] ++
level Medium -- NKBW tests (bridging test between secondary and tertiary education)
[ (2/3+2/7)/(4/7-1/3) -- VWO B, Sep 2010
, 18/(4/5-1/2) -- VWO A, Sep 2010
]
fractionLiberalExamples :: Examples Expr
fractionLiberalExamples =
level Easy
[ 3/5 + 1/3
, 1/2 + 2/4
, 3/2 + 2/3
, 7/11 + 3/11 ]