Beispiel #1
0
void IntDialog::accept() {
  QString formula = boxName->toPlainText().remove("\n");
  Integration *i =
      new Integration(formula, boxVariable->text(),
                      dynamic_cast<ApplicationWindow *>(this->parent()),
                      d_graph, boxStart->value(), boxEnd->value());
  i->setTolerance(boxTol->text().toDouble());
  i->setMaximumIterations(boxSteps->value());
  i->setMethodOrder(boxOrder->value());
  if (d_graph && boxPlot->isChecked())
    i->enableGraphicsDisplay(true, d_graph);
  i->run();
  delete i;
}