summaryrefslogtreecommitdiff
path: root/theories/Reals/Rpow_def.v
blob: 4f7a8d22ef527b11fb806a0492c884605136d080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(************************************************************************)
(*  v      *   The Coq Proof Assistant  /  The Coq Development Team     *)
(* <O___,, *   INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2011     *)
(*   \VV/  **************************************************************)
(*    //   *      This file is distributed under the terms of the       *)
(*         *       GNU Lesser General Public License Version 2.1        *)
(************************************************************************)

(* $Id: Rpow_def.v 14641 2011-11-06 11:59:10Z herbelin $ *)

Require Import Rdefinitions.

Fixpoint pow (r:R) (n:nat) : R :=
  match n with
    | O => R1
    | S n => Rmult r (pow r n)
  end.