Skip to content

Commit

Permalink
Merge pull request #8 from eviforscht/implement_mathematical_perfect_…
Browse files Browse the repository at this point in the history
…parabola

Implement mathematical perfect parabola
  • Loading branch information
nano authored Aug 25, 2018
2 parents 089f629 + 2eef73e commit e5efc6d
Show file tree
Hide file tree
Showing 11 changed files with 66 additions and 326 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*.la
*.lai
*.so
*.dll
*.dylib

# Qt-es
Expand Down
2 changes: 0 additions & 2 deletions Desktop/Fallturm/Fallturm.pro
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ SOURCES += \
fallturmexception.cpp \
settingsdialog.cpp \
plot.cpp \
funktion.cpp \
parabola.cpp \
mainwindow.cpp

Expand All @@ -41,7 +40,6 @@ HEADERS += \
fallturmexception.h \
settingsdialog.h \
plot.h \
funktion.h \
parabola.h

FORMS += \
Expand Down
213 changes: 0 additions & 213 deletions Desktop/Fallturm/funktion.cpp

This file was deleted.

83 changes: 0 additions & 83 deletions Desktop/Fallturm/funktion.h

This file was deleted.

7 changes: 2 additions & 5 deletions Desktop/Fallturm/innosetup.iss
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Fallturm"
#define MyAppVersion "1.0"
#define MyAppPublisher "Evangelische Schule Neuruppin"
Expand Down Expand Up @@ -35,9 +32,9 @@ Name: "german"; MessagesFile: "compiler:Languages\German.isl"
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "release\Fallturm.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "release\Fallturm.exe"; DestDir: "{app}";
Source: "release\vc_redist.x64.exe"; DestDir: "{app}"; Flags: ignoreversion; AfterInstall: installRuntime
Source: "release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "release\*"; DestDir: "{app}"; Flags: recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Code]
Expand Down
Binary file not shown.
Binary file not shown.
32 changes: 32 additions & 0 deletions Desktop/Fallturm/parabola.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "parabola.h"
namespace FallturmMath {

bool Point::compare_double(const double a, const double b, const double eps)
{
Expand Down Expand Up @@ -30,6 +31,36 @@ double Parabola::f(const double x) const
return a*x*x + b*x + c;
}

double Parabola::getA() const
{
return a;
}

void Parabola::setA(double value)
{
a = value;
}

double Parabola::getB() const
{
return b;
}

void Parabola::setB(double value)
{
b = value;
}

double Parabola::getC() const
{
return c;
}

void Parabola::setC(double value)
{
c = value;
}

Parabola::Parabola(const QVector<Point> points)
{
//solve Ax=b for x
Expand Down Expand Up @@ -108,3 +139,4 @@ void Parabola::setCoefficients(double new_a, double new_b, double new_c)
b = new_b;
c = new_c;
}
}
Loading

0 comments on commit e5efc6d

Please sign in to comment.