objective c - Homework: Figuring Out a Calculator's Forumla -


So I have created a simple math program with C, but the work in my hand is a bit complicated where my knowledge is currently .

I need to get the calculator here (calculator: appendix which covers it a little bit) and program it in the objc program. I have a hard time trying to get the weight / formula for this, hope to get the right help, how I can understand it.

There is no point in wrapping dubbles in all implementation C's only NSNM.

  #import & lt; Cocoa / Cocoa H & gt; @ Interface GRE: NSObject @Emment @ Expimation GRE + (NSNumber *) Calculation: (double) Age: (double) IOP: (double) CCT: (double) VCD: (double) psd {double meaning 5 = 5.64301, betaaj = 0.23260; Double manneep = 24.1386, betaap = 0.09025; Double menu = -14.3349, BACACT = 0.71503; Double meanpsd = 9.76001, betapsd = 0.12376; Double median = 3.60828, betavakadi = 0.17689; Double S0_t = 0.91831; Double t_cct = -1.0 * (cct / 40.0); Double t_psd = psd / .2; Double t_vcd = vcd / 0.1; Double AgedCAD = Age / 10.0; Double xbateman = (Aidkade - Earths) * Betaage + (IOP-MENIOP) * Betaap + (TCCT-IANAACT) * Bactt + (T_PS) - BAPED + + (T-VCD-MUDCCD) * Betavadi; Double Risk = 1 - POW (S0_t, exp (xbatamin)); Return [double number of NSN: risk]; } @ And int main () {NSUUTOriziIPUL = P = [NSAUTOriyPull new]; NSLog (@ "Risk:% @", [GRE Count: (55): (24): (540): (.40): (2.2)]); [P release]; }  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -