Skip to content
Snippets Groups Projects
Commit 82f2f1e1 authored by Alexander Hinneburg's avatar Alexander Hinneburg
Browse files

parabel für U04

parent dd89f2c4
No related branches found
No related tags found
No related merge requests found
CREATE SCHEMA IF NOT EXISTS parabel ;
SET search_path TO parabel;
CREATE TABLE PARABEL(
ID NUMERIC(5) NOT NULL,
P DOUBLE PRECISION NOT NULL,
Q DOUBLE PRECISION NOT NULL,
PRIMARY KEY(ID));
-- (x-1)(x-2): x^2 -3x + 2, Nullstellen 1 und 2
INSERT INTO PARABEL VALUES (1, -3, +2);
-- (x+1)(x+1) + 1: x^2 + 2x + 2: Keine Nullstellen
INSERT INTO PARABEL VALUES (2, +2, +2);
-- (x+1)(x+1): x^2 +2x + 1: Eine Nullstelle -1
INSERT INTO PARABEL VALUES (3, +2, +1);
-- (x-3)(x+4): x^2 + x - 12: Nullstellen +3, -4
INSERT INTO PARABEL VALUES (4, +1, -12);
commit;
GRANT USAGE ON SCHEMA parabel TO student;
GRANT SELECT ON ALL TABLES IN SCHEMA parabel to student;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment