#include <stdio.h>
#include <curses.h>
#include <math.h>
Makrodefinitionen | |
#define | DIGITS 10 |
#define | DECIMALS 5 |
#define | sgn(x) (x==0) ? 0 : (x<0) ? -1 : +1; |
Aufzählungen | |
enum | input_states { INT_PART, DEC_PART, EXP_PART, INT_PART, DEC_PART, EXP_PART } |
Funktionen | |
void | double2str (char str[], double r) |
void | screen_refresh () |
err_error () | |
fn_sin () | |
fn_asin () | |
fn_pi () | |
fn_key (int digit) | |
fn_enter () | |
void | call (int key) |
int | main (void) |
Variablen | |
WINDOW * | wnd |
int | nrows |
int | ncols |
double | t = 0 |
double | z = 0 |
double | y = 0 |
double | x = 0 |
int | nr_digits = 1 |
int | nr_exp_digits = 0 |
enum input_states | state = INT_PART |
#define DECIMALS 5 |
#define DIGITS 10 |
enum input_states |
void call | ( | int | key | ) |
void double2str | ( | char | str[], |
double | r | ||
) |
Gets double number and converts to string
err_error | ( | ) |
fn_asin | ( | ) |
fn_enter | ( | ) |
fn_key | ( | int | digit | ) |
fn_pi | ( | ) |
fn_sin | ( | ) |
int main | ( | void | ) |
void screen_refresh | ( | ) |
Clear screen and print values of t,z,y,x registers.
int ncols |
int nr_digits = 1 |
int nr_exp_digits = 0 |
int nrows |
enum input_states state = INT_PART |
double t = 0 |
WINDOW* wnd |
double x = 0 |
double y = 0 |
double z = 0 |