#apache #archlinux #asterisk #centos #debian #gentoo #haskell #kde #kubuntu #lisp #math #mysql #perl #python #ruby-lang #rubyonrails #suse #ubuntu #vim #wikipedia 0 1 2 3 4 5 6 7 8 9 10 11
Top Prev 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 Next
#math
<srart> tan'(theta)=1/30(dh/dt)
<JimDangle> oh. well all i had so far was sec^2 theta = (xyy' - yxx') / x^2, but then i started solving for y', and i think thats wrong
<srart> h=y=height
<JimDangle> so in the end i got y' = (x^2sec^2(theta) + yxx') / xy
<JimDangle> and i dont think thats right
<JimDangle> well not toally in the end. i still have stuff to do
<JimDangle> but i goofed
<srart> you know y, you want to use y @ 30 * 1/30
<Trixsey> http://pastebin.ca/363144 - What am I doing wrong?
<Trixsey> I'm getting index out of bounds on my matrice-loops :P
<JimDangle> oh yeah
<JimDangle> i forgot about what it actually wanted
<JimDangle> time to redo this
<arctanx> Trixsey: I've never used whatever language that is, but I think you've got your row/column the wrong way round on your inside SumC = and SumR = lines
<arctanx> it's usually (row, column) is it not?
<Trixsey> yeah
<Trixsey> In Matlab I think it's (coulmn, row) though :/
<Trixsey> let me check
<arctanx> Trixsey: the other thing to check is that your K(1) and K(2) are the right way around too
<Trixsey> yeah I did
<Trixsey> :S
<Trixsey> K(1) = 2 (it has two cols)
<Trixsey> K(2) is 3 (it has 3 rows)
<arctanx> you know, it wouldn't hurt just to try (e,c) and (d,f) just to see :P
<JimDangle> srart so when the baloon is 30 meters above ground, that would mean y = 10 right? and will i need that later on?
<Trixsey> ohh yeah, it is row, col
<Trixsey> :p
<arctanx> see there you go, matlab isn't weird for no good reason :P
<Trixsey> ??? Attempted to access A(3,1); index out of bounds because size(A)=[2,3].
<Trixsey> still out of bounds
<Trixsey> it shouldn't even go to 3 :S
<arctanx> can you update your pastebin
<Trixsey> 1 min =)
<Trixsey> K(1) = 2
<Trixsey> I want to loop from 1-2 in this case
<Trixsey> it goes up to 3 even
<arctanx> did you update your paste of the code yet?
<JimDangle> man im just lost now on this #2
<JimDangle> damn it
<JimDangle> but i think i got it
<srart> JimDangle: time = 10, y = 30
<JimDangle> if its tan(theta) = y/x, and i want the rate of change of the angle, then wouldnt it be theta = tan^-1(y/x)
<JimDangle> srart right
<JimDangle> i think im overcomplicating things
<srart> arcsec(y/x), yeah, I think so.
<JimDangle> right
<JimDangle> then wouldnt it be theta' = arctan'(y/x)
<JimDangle> or whatever
<srart> tan' = sec^2
<JimDangle> yeah
Previous Page Next Page