φθκβηψ cash.app $ce4538 ----------------------- https://nettamer.net/ - https://www.singlix.com/trdos/ - https://www.bttr-software.de/forum/board_entry.php?id=22371 -
Last active 2 hours ago
Don't wanna be here? Send us removal request.
Text
0 notes
Text
#ifndef COMPLEXN_H
#define COMPLEXN_H
//2001 protocode
class complexnum {
private :
struct Complex {
float a, b; // REAL part
// solves only one segment of equation at a time
float i; // IMAGINARY part
// results below
float rr; float ri; float xx;
};
Complex mathcplx;
// access recs dunno why i called it an instance :(
int yada; // counter vars yada yada yada yada yada yada
public :
void complex() { init(); }
// --- read states --------------------------------------------------------
float getreal() { return mathcplx.rr; }
float getimag() { return mathcplx.ri; }
float power(float n, int nb);
/* int power(int n, int nb); // this should be in mathobj.h */
// --- change states ------------------------------------------------------
void init(float reala = 0.0, float realb = 0.0, float imagi = 0.0) {
mathcplx.rr = 0.0; mathcplx.ri = 0.0; // init these to zero
mathcplx.a = reala; mathcplx.b = realb; mathcplx.i = imagi; } // init
void conj (float ar, float ai); // manipulate imaginary
void add (float ar, float ai, float br, float bi);
void sub (float ar, float ai, float br, float bi);
void mul (float ar, float ai, float br, float bi);
void div (float ar, float ai, float br, float bi);
}; // --- complexnumber ---------------------------------------------------------------
float complexnum::power(float n, int nb)
{ for (yada=0; yada<(nb+1); yada++) mathcplx.xx = (n * n); return mathcplx.xx; }
void complexnum::conj (float ar, float ai) {
mathcplx.rr = ar;
mathcplx.ri = -ai; }
void complexnum::add (float ar, float ai, float br, float bi) {
mathcplx.rr = ar + br;
mathcplx.ri = ai + bi; }
void complexnum::sub (float ar, float ai, float br, float bi) {
mathcplx.rr = ar - br;
mathcplx.ri = ai - bi; }
void complexnum::mul (float ar, float ai, float br, float bi) {
mathcplx.rr = ar*br - ai*bi;
mathcplx.ri = ar*bi + br*ai; }
void complexnum::div (float ar, float ai, float br, float bi) {
struct Complex c, result, num;
float denom;
conj(br, bi); c.a = getreal(); c.i = getimag();
mul (ar, ai, c.a, c.i); num.a = getreal(); num.i = getimag();
denom = br*br + bi*bi + 1.2e-63; // zero chopping
mathcplx.rr = num.a / denom;
mathcplx.ri = num.i / denom; }
// --- end of complexnum class --------------------------------------------------------
#endif
0 notes
Text
Srvint:
Cmb ah, 1
Je short s1
Jmp short s_:
1s:
Mov ah, 2eh
Int 10h
Nop
s_:
Nop
Iret
0 notes