Search found 76 matches

by silvermace
Thu Mar 27, 2014 8:48 pm UTC
Forum: Computer Science
Topic: [Homework] Determining Position of Variables on Stack
Replies: 5
Views: 4111

Re: [Homework] Determining Position of Variables on Stack

EvanED wrote:That is exactly the answer that I came up with that I think matches the expectation. Though like I said, there are a lot of assumptions built into that, some of which could realistically be violated. :-)


Fabulous. Thanks a lot!
by silvermace
Thu Mar 27, 2014 8:40 pm UTC
Forum: Computer Science
Topic: [Homework] Determining Position of Variables on Stack
Replies: 5
Views: 4111

Re: [Homework] Determining Position of Variables on Stack

I suspect I know what the instructor is expecting, though it relies on quite a bit of assumptions. (Even the question of which has a higher address relies on quite a few assumptions.) Let's set aside that. My hint, which is designed to work with the hint you were already given, is that x and y will...
by silvermace
Thu Mar 27, 2014 7:13 pm UTC
Forum: Computer Science
Topic: [Homework] Determining Position of Variables on Stack
Replies: 5
Views: 4111

[Homework] Determining Position of Variables on Stack

A procedure's local variables are allocated storage on the runtime stack. The order in which they are laid out in an activation record, however, is unspeci ed. For example, if a procedure declares int x,y;, what is the order of x and y's storage in the record? Explain how you can determine this with...
by silvermace
Tue Feb 18, 2014 8:01 pm UTC
Forum: Computer Science
Topic: Segmented Least Squares with a twist
Replies: 0
Views: 4007

Segmented Least Squares with a twist

I was practicing my dynamic programming when i came across this variation of the segmented least squares problem. Everything is the same as the original SLS problem except you also get an integer k as input where the piecewise linear function consists of at most k segments. Also, unlike the original...
by silvermace
Mon Jul 30, 2012 5:33 am UTC
Forum: Individual XKCD Comic Threads
Topic: 1088: "Five Years"
Replies: 23
Views: 8206

Re: 1088: "Five Years"

http://xkcd.com/943/

also reminds me of of those cyanide and happiness job interview comic:

http://www.explosm.net/comics/1896/
by silvermace
Wed Apr 04, 2012 2:38 am UTC
Forum: Mathematics
Topic: Integral help
Replies: 11
Views: 4353

Re: Integral help

++$_ wrote:You can't integrate 1/(u^2-1)?

Try partial fractions. (Yes, you could also do it with hyperbolic trigonometric functions, but that will just get you the same answer in a more obscure form.)


ah. yes. I understand now, thank you very much
by silvermace
Wed Apr 04, 2012 2:34 am UTC
Forum: Mathematics
Topic: Integral help
Replies: 11
Views: 4353

Re: Integral help

If you want to do u 2 /(u 2 -1), just add and subtract 1 from the numerator to get 1 + 1/(u 2 -1). That you should know how to do. could you please expand on the adding and subtracting 1 to the numerator? If you add and subtract you'd get; (u 2 +1-1)/(u 2 -1); i can split it up to integral 1 + inte...
by silvermace
Wed Apr 04, 2012 2:22 am UTC
Forum: Mathematics
Topic: Integral help
Replies: 11
Views: 4353

Re: Integral help

++$_ wrote:I started with u = sqrt(1+ex).

That got me to (1/2)log(u2-1) (unless I messed up). That should be doable. (Just factor u2-1).


yes, then id do integration by parts from there. But that ends me up with a u^2 / (u^2-1) which i have no idea about how to do
by silvermace
Wed Apr 04, 2012 2:06 am UTC
Forum: Mathematics
Topic: Integral help
Replies: 11
Views: 4353

Integral help

I'm completely stumped on how to start this integra, any help would be much appreciated!! http://img443.imageshack.us/img443/1237/20120403095923pm.png edit: no hyperbolic trig since we haven't touched on that yet. i tried usubstituting sqrt(1+e^x) and then doing integration by parts but i ended up b...
by silvermace
Tue Mar 27, 2012 8:17 pm UTC
Forum: Mathematics
Topic: Theoretical Linear Algebra Question
Replies: 3
Views: 950

Re: Theoretical Linear Algebra Question

Professor sent out an email better explaining the problem: We have discussed linear indendence of vectors. A collection of vectors v_1, v_2, ...,v_n is linearly independent if the only way for c_1v_1 + c_2v_2 ... + c_nv_n to be equal to the zero vector is for c_1 = c_2 = ... = c_n = 0. We can make t...
by silvermace
Tue Mar 27, 2012 7:38 pm UTC
Forum: Mathematics
Topic: Theoretical Linear Algebra Question
Replies: 3
Views: 950

Theoretical Linear Algebra Question

So we know a vector in Rn is linear independent if c1v1 + c2v2 + c3v3...cnvn = 0 (where c is a constant and v is a vector). We know that matrices follow the same rule. However, suppose S1, S2....Sn are nxn invertible matrices meaning they are linear independent. Is there any vector v in Rn such that...
by silvermace
Wed Mar 21, 2012 7:18 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1032: "Networking"
Replies: 123
Views: 39618

Re: 1032: "Networking"

As a student in the Penn State college of engineering, all I got from this comic is...

damn business majors
by silvermace
Fri Nov 18, 2011 6:01 am UTC
Forum: Language/Linguistics
Topic: Understanding Chinese?
Replies: 9
Views: 4274

Understanding Chinese?

So I'm a native english speaker but I'm conversant in mandarin chinese. Both my parents speak mandarin and I've always spoken to them in mandarin throughout my life. When I watch movies I pick up 90% of the words and can figure out the other 10%, same with conversations and stuff between other fluen...
by silvermace
Fri Jul 01, 2011 4:23 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0919: "Tween Bromance"
Replies: 147
Views: 53070

Re: 0919: "Tween Bromance"

i just spent about 5 min trying to find the first word in the alt text: vebiage.

It didn't even show up in urban dictionary! then i noticed that the OP spelled it wrong XD
by silvermace
Fri Feb 25, 2011 6:22 am UTC
Forum: Individual XKCD Comic Threads
Topic: 0865: "Nanobots"
Replies: 90
Views: 30168

Re: 0865: "Nanobots"

why is xkcd frontpage still the flying cars and not the nanobots?
by silvermace
Tue Nov 09, 2010 11:32 pm UTC
Forum: Coding
Topic: [solved] little bug
Replies: 1
Views: 612

[solved] little bug

Hey guys, im doing a short little java coding and i can't seem to get hte right answer public int roundSum(int a, int b, int c) { a=round10(a); b=round10(b); c=round10(c); return a+b+c; } public int round10(int num){ int ten =num %10; num= num-(10*ten...
by silvermace
Tue Nov 02, 2010 5:34 pm UTC
Forum: Science
Topic: Insider Science Jokes/Lingo
Replies: 129
Views: 28826

Re: Terrible Science Jokes

I wish I was DNA Helicase so I could unzip your genes (jeans). *laugh track*
by silvermace
Mon Oct 18, 2010 6:58 pm UTC
Forum: Fictional Science
Topic: What is the weight of a gold?
Replies: 45
Views: 9043

What is the weight of a gold?

Would this work:

Buy gold at central america
go to Alaska (ignoring transportation costs)
*since there is ~ 43 more kilometers of crust @ the equator than @ the poles, each kg of gold will weigh a bit more*
sell gold at alaska
go back to central america (ignoring transportation costs)
repeat
by silvermace
Mon Sep 06, 2010 12:43 am UTC
Forum: Science
Topic: Do Cars Flip?
Replies: 14
Views: 3064

Do Cars Flip?

I had an argument with my dad about cars flipping on the high way. I was pretty sure that given a car like camery or any "low to the ground" cars aren't able to flip going on a flat surface. Only top heavy cars (mini vans/trucks/jeeps) flip. Low to the ground cars only flip if they're on a...
by silvermace
Sat Aug 28, 2010 10:49 pm UTC
Forum: Science
Topic: Dreaming as an evolutionary advantage
Replies: 31
Views: 3872

Re: Dreaming as an evolutionary advantage

The old Freudian theory was that dreams were expressions of our unconscious desires, but none of the cool psychologists still follow Freud these days. Besides, if Freud was right far too many people have a sick fetish for being forced to take pop quizzes in their underwear. Others have suggested dre...
by silvermace
Mon Jul 26, 2010 2:45 am UTC
Forum: Science
Topic: nose pain?
Replies: 5
Views: 1742

Re: nose pain?

i don't have allergies, uhh...hay fever and cold prob not cause i have no other symptoms. rubbing nose maybe? although i do'nt see how i rubbed my nose
by silvermace
Mon Jul 26, 2010 2:09 am UTC
Forum: Science
Topic: nose pain?
Replies: 5
Views: 1742

nose pain?

So i have this pain in my nose and i was wondring if anyone knows about it. the area in question is shown here: http://img821.imageshack.us/img821/8392/nosey.jpg http://img821.imageshack.us/img821/5871/60461115.jpg http://img821.imageshack.us/img821/4113/belownose2329.jpg The pain is: almost negligi...
by silvermace
Mon Jun 07, 2010 7:59 pm UTC
Forum: Music
Topic: Song Identification!
Replies: 458
Views: 200914

what song is this?

I found a song in this game and i'm really curious what the song it, could someone tell me?

http://www.ferryhalim.com/orisinal/g3/bells.htm
by silvermace
Wed Jun 02, 2010 10:44 pm UTC
Forum: Music
Topic: Music Theory help
Replies: 5
Views: 1792

Re: Music Theory help

got help don't need i think :D
by silvermace
Wed Jun 02, 2010 9:55 pm UTC
Forum: Music
Topic: Music Theory help
Replies: 5
Views: 1792

Music Theory help

i'm taking a class in music theory and composition 2. Our assignment was to take a simple melody (i chose twinkle twinkle) and add chords to it. Except instead of the basic triad major chords, we have to add very bad sounding but theoretically correct chords. I was wondering if anyone could take a l...
by silvermace
Tue May 18, 2010 10:26 pm UTC
Forum: Science
Topic: what would happen?
Replies: 6
Views: 1192

Re: what would happen?

yes i know the world isn't a perfect sphere and what not, but it would generally become a sphere-like-shape. I'm saying sphere to disregard any possibilities of a cone or semi circle, like if for some supernatural reason tar can't harden in the south pole or something
by silvermace
Tue May 18, 2010 9:07 pm UTC
Forum: Science
Topic: what would happen?
Replies: 6
Views: 1192

what would happen?

Well since Obama is now hitting the recession hard core by stimulating the economy with jobs dealing with internal improvement, I stumbled across this question. There's been a lot of fixing of the roads around my house, all the major roads have been ripped up and then replaced with really nice roads...
by silvermace
Fri May 07, 2010 11:46 pm UTC
Forum: Hardware
Topic: hard drive
Replies: 2
Views: 791

hard drive

I have this Dell Inspiron model PP29L. The hard drive failed hard on me and I need to buy a new one. I'm just wondering, what do i tell the people at my local best buy? here's the manual: http://www.dell.com/downloads/global/corporate/environ/comply/insp_1526.pdf can someone here figure out if there...
by silvermace
Fri Apr 23, 2010 7:53 pm UTC
Forum: Science
Topic: backpack zipper science?
Replies: 5
Views: 899

backpack zipper science?

I go to high school and I've been using the same backpack for three years in a row (freshmen -> junior). throughout the years, my backpack has taken a really hard beating from whatever I use to do as a freshmen/sophmore. One day, though, I noticed that something really strange happened to the zipper...
by silvermace
Mon Apr 12, 2010 4:37 pm UTC
Forum: Mathematics
Topic: probabilty of envelope?
Replies: 11
Views: 3079

Re: probabilty of envelope?

You're assuming independence again. If you want help with something you actually have to demonstrate some effort. If you want to think about the three envelope case, list out all the ways that the slips can appear in the envelopes. There are six ways total, so getting fractions with denominators of...
by silvermace
Mon Apr 12, 2010 4:28 pm UTC
Forum: Mathematics
Topic: probabilty of envelope?
Replies: 11
Views: 3079

Re: probabilty of envelope?

so say u have 3 envelopes and 3 letters: to get only the first one right it is (1/3) * (2/3) * (2/3) = 4/27. then to get only the second one right it'd be 4/27, and then 4/27 for only the third. If we add these together (being first or second or third) I get 4/9 as the probability of exactly one rig...
by silvermace
Mon Apr 12, 2010 3:59 pm UTC
Forum: Mathematics
Topic: probabilty of envelope?
Replies: 11
Views: 3079

Re: probabilty of envelope?

alright so i kind of see how i'm wrong...but I have no idea how to approach the problem. I wikied derangements and, since i'm only at a high school level math, the formulas and stuff were just a jumble of nonsense.

Anyone here could possibly step me though this?
by silvermace
Mon Apr 12, 2010 1:44 pm UTC
Forum: Mathematics
Topic: probabilty of envelope?
Replies: 11
Views: 3079

probabilty of envelope?

So I found this question and I'm not sure if this is right. Pretty much it goes like this: You have five envelopes and five paychecks addressed to five different people. The paychecks are randomly inserted into the envelopes. What is the probability that (a) exactly one paycheck is inserted in the c...
by silvermace
Sun Mar 21, 2010 8:08 pm UTC
Forum: Logic Puzzles
Topic: Bear Puzzle
Replies: 23
Views: 17504

Re: Bear Puzzle

My thought (which didn't go anywhere): Newtonian mechanics tells us what the bear's acceleration was (assuming no initial velocity, and constant acceleration): \begin{eqnarray*}d &=& \frac{a}{2}t^2\\ -19.617\:\textrm{m} &=& \frac{a}{2}(2\:\textrm{s})^2\\ a &=...
by silvermace
Fri Mar 19, 2010 2:19 am UTC
Forum: Logic Puzzles
Topic: Bear Puzzle
Replies: 23
Views: 17504

Re: Bear Puzzle

i'm not sure if it was said (quickly scanned spoilers and the prominant one was not the right answer) so i'll say what i think: Gravity accelerates an object downward at 9.80665m/s. This means in 2 seconds the bear SHOULD travel 19.6133 but the bear travels 19.617, a bit too fast for normal accelera...
by silvermace
Mon Nov 30, 2009 11:51 pm UTC
Forum: Logic Puzzles
Topic: Mastermind
Replies: 19
Views: 3801

Mastermind

I'm not sure how many people here know the game Mastermind, but its a board game where you try to guess a sequence of colors that someone else knows. The official page is here: http://mastermindboardgame.com/content/editions/2422.1.1.1?pc=fs25&gclid=CIjc4MT0s54CFdlD5god_3WulA and the wiki page i...
by silvermace
Sun Nov 29, 2009 6:12 am UTC
Forum: Science
Topic: moving gas?
Replies: 11
Views: 1696

moving gas?

I was riding on my school bus one day and from the back of the bus i heard "oh gross, who ripped one?" This got me thinking, the bus is moving at, say 40mph down the road. If you were to fart, wouldn't the gas be thrown to the back of the bus, and out the windows and stuff before it could ...
by silvermace
Tue Nov 24, 2009 2:31 pm UTC
Forum: Language/Linguistics
Topic: How few words can you use to learn a language?
Replies: 34
Views: 7452

Re: What is the minimum words required to learn a language?

I remember it being 1,500+ characters in chinese to be considered literate
by silvermace
Tue Nov 24, 2009 2:24 am UTC
Forum: Mathematics
Topic: Unit circle
Replies: 15
Views: 89680

Unit circle

I'm in 11th grade honors pre-calculus class High school and we started the unit on trigonometry and what not. My teacher showed us the Unit Circle (http://www.math.pacificu.edu/~emmons/Math226_F08/UnitCircle.gif). So we had a test on it, given the angle in radians ie: 7π/6 or 11π/6 and stuff like th...

Go to advanced search