~ubuntu-branches/ubuntu/saucy/cuyo/saucy

« back to all changes in this revision

Viewing changes to data/polynome.mli

  • Committer: Bazaar Package Importer
  • Author(s): Angel Abad
  • Date: 2010-07-19 09:54:44 UTC
  • mfrom: (4.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100719095444-ecoegzo1vvvdwra9
Tags: 2.~-1.1.brl3-1ubuntu1
* Merge from debian unstable (LP: #607106). Remaining changes:
  - Don't register MimeType=application/x-executable in
    the .desktop file.
  - Remove UTF-8 in the .desktop file
  - 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
(*
 
2
   Copyright 2006 by Mark Weyer
 
3
 
 
4
   This program is free software; you can redistribute it and/or modify
 
5
   it under the terms of the GNU General Public License as published by
 
6
   the Free Software Foundation; either version 2 of the License, or
 
7
   (at your option) any later version.
 
8
 
 
9
   This program is distributed in the hope that it will be useful,
 
10
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
   GNU General Public License for more details.
 
13
 
 
14
   You should have received a copy of the GNU General Public License
 
15
   along with this program; if not, write to the Free Software
 
16
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
17
*)
 
18
 
 
19
exception Nullpolynom
 
20
 
 
21
val loese_2_normiert: float -> float -> float list
 
22
  (* loese_2_normiert a b l�st  x^2 + ax + b = 0 *)
 
23
 
 
24
val loese_2: float -> float -> float -> float list
 
25
  (* loese_2 a b c l�st  ax^2 + bx + c = 0 *)
 
26
 
 
27
val loese_3: float -> float -> float -> float -> float list
 
28
  (* loese_3 a b c d l�st  ax^3 + bx^2 + cx + d = 0 *)
 
29
 
 
30
val loese_4: float -> float -> float -> float -> float -> float list
 
31
  (* loese_4 a b c d e l�st  ax^4 + bx^3 + cx^2 + dx + e = 0 *)
 
32
 
 
33
 
 
34
(* Ausgegeben werden jeweils alle reellen Nullstellen (mit Vielfachheiten).
 
35
   Sind das zu viele, dann liegt das Nullpolynom vor und die entsprechende
 
36
   exception wird geraist. *)
 
37