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

Require Import Rdefinitions.

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