d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > General Archive > Math Prob
Prev12345Next
Add Reply New Topic
Member
Posts: 62,863
Joined: Aug 2 2009
Gold: 1,189.90
Sep 30 2014 10:09pm
Quote (ringo794 @ Sep 30 2014 09:06pm)
People who code impress me to no end.
I had to take a computational physics class.
Almost died of stress just earning a C.
Never again...


It's probably not fair to make you take a programming class like that without programming experience. :p

I love it though. I don't need to know anything about math, physics, science, anything. As long as I can figure out a logical approach, anything is solvable.
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Sep 30 2014 10:13pm
Quote (ringo794 @ Oct 1 2014 12:06am)
People who code impress me to no end.
I had to take a computational physics class.
Almost died of stress just earning a C.
Never again...


iirc you're the math major right? vaguely recall hijacking someone's thread and talking about math careers lol

Quote (AnimeFTW @ Oct 1 2014 12:05am)
Code
var sum = 0;
for(var i = 0; i < 100; i++){
if(parseInt(i/3) === i/3){
  sum += i;
}
}
alert(sum);


That's my no-math version.


writing code before putting thought into the solution? shame on you!

inb4ididthesamething

fakeedit: but with modulus
/realedit: shit, didnt even need modulus D:

This post was edited by carteblanche on Sep 30 2014 10:16pm
Member
Posts: 6,599
Joined: May 29 2013
Gold: 1,803.72
Sep 30 2014 10:13pm
Code
int iSomme = 0, iValeur, iValeurs;
iValeur=0;


for ( iValeurs=1; iValeur < 100; iValeurs++) {

iValeur=0;
iValeur=iValeurs*3;
iSomme+=iValeur;


}
System.out.println(iSomme);


So that's mine, I testing 99 instead of 100 and it works ... so I ain't sure what to switch.
Member
Posts: 31,702
Joined: Mar 21 2007
Gold: 4.00
Sep 30 2014 10:14pm
Quote (carteblanche @ Sep 30 2014 11:13pm)
iirc you're the math major right? vaguely recall hijacking someone's thread and talking about math careers lol


Doubling on Physics and Math haha.

But I have been getting interested in engineering lately.
Senior year atm as physics major, so might go back and do engineering as well >.<

tl;dr: I'm gonna be in college til I'm 80.

This post was edited by ringo794 on Sep 30 2014 10:15pm
Member
Posts: 31,223
Joined: May 16 2008
Gold: 178.48
Sep 30 2014 10:14pm
12
Member
Posts: 62,863
Joined: Aug 2 2009
Gold: 1,189.90
Sep 30 2014 10:16pm
Quote (Jibbosh @ Sep 30 2014 09:13pm)
Code
int iSomme = 0, iValeur, iValeurs;
iValeur=0;


for ( iValeurs=1; iValeur < 100; iValeurs++) {
 
  iValeur=0;
  iValeur=iValeurs*3;
  iSomme+=iValeur;
 
 
}
  System.out.println(iSomme);


So that's mine, I testing          99 instead of 100 and it works ... so I ain't sure what to switch.


Oh, I see what you're doing. It took a second because of the weird variable names. Try checking to see if iValeur is greater than 100 before adding it to iSomme.
Banned
Posts: 283
Joined: Sep 30 2014
Gold: 69.40
Sep 30 2014 10:16pm
Quote (ringo794 @ Oct 1 2014 05:14am)
Doubling on Physics and Math haha.

But I have been getting interested in engineering lately.
Senior year atm as physics major, so might go back and do engineering as well >.<

tl;dr: I'm gonna be in college til I'm 80.


agreed

Member
Posts: 31,702
Joined: Mar 21 2007
Gold: 4.00
Sep 30 2014 10:17pm
Quote (poolrip @ Sep 30 2014 11:16pm)
agreed


absolutely rekt
I am top tier stupid :(

This post was edited by ringo794 on Sep 30 2014 10:17pm
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Sep 30 2014 10:18pm
Quote (ringo794 @ Oct 1 2014 12:14am)
Doubling on Physics and Math haha.

But I have been getting interested in engineering lately.
Senior year atm as physics major, so might go back and do engineering as well >.<

tl;dr: I'm gonna be in college til I'm 80.


i remember those feelings. first few months after graduating, i was studying every day. then i saw it wasn't gonna help my job any, so i turned on anime instead >.<
Member
Posts: 119,673
Joined: Jan 18 2008
Gold: 0.00
Sep 30 2014 10:18pm
Quote (ringo794 @ Oct 1 2014 12:14am)
Doubling on Physics and Math haha.

But I have been getting interested in engineering lately.
Senior year atm as physics major, so might go back and do engineering as well >.<

tl;dr: I'm gonna be in college til I'm 80.


physics was fun but only took first 2 courses of that :P
Go Back To General Archive Topic List
Prev12345Next
Add Reply New Topic