Debian Codegraph @

common/core_math1.h

raw
1 /*****************************************************************************
2 * Free42 -- an HP-42S calculator simulator
3 * Copyright (C) 2004-2026 Thomas Okken
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License, version 2,
7 * as published by the Free Software Foundation.
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, see http://www.gnu.org/licenses/.
16 *****************************************************************************/
17
18 #ifndef CORE_MATH1_H
19 #define CORE_MATH1_H 1
20
21 #include "free42.h"
22 #include "core_phloat.h"
23
24 bool persist_math();
25 bool unpersist_math(int ver);
26 void reset_math();
27
28 void put_shadow(const char *name, int length, phloat value);
29 bool get_shadow(const char *name, int length, phloat *value);
30 void remove_shadow(const char *name, int length);
31 void set_solve_prgm(const char *name, int length);
32 int start_solve(const char *name, int length, phloat x1, phloat x2);
33 int return_to_solve(int failure, bool stop);
34
35 void set_integ_prgm(const char *name, int length);
36 void get_integ_prgm(char *name, int *length);
37 void set_integ_var(const char *name, int length);
38 void get_integ_var(char *name, int *length);
39 int start_integ(const char *name, int length);
40 int return_to_integ(bool stop);
41
42 #endif