The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
It's a hideously inefficient and imprecise way to make a picture, but, for whatever peculiar reasons, he and his parents find logic in this inefficiency and imprecision (which will absolutely not get him into art school).
Are crayons banned, in his house, to prevent him drawing on the walls (which is tricky to do with Rubik's cubes)?
I wanna be a eunuchs developer! Pass me a bread knife!
Reference Source. Makes some sense. You're saving 17 microseconds and all of those checks and calls cost some amount of time. My thoughts have always been that lists are better as a default because you can abstract them (e.g. IList<t>) and you don't need to worry about bounds, while arrays are better when optimizing critical sections for performance (indirection has a cost).
array is not only supposed to predictively as fast as foreach loop on list
but I am not sure I quite believe it...
The difference is only very minor though.. and would be important if your statement each iteration is quite minimal...
The goal of this is to produce a small program to solve a physical problem with numerical data. An electron of
charge −e and mass me is moving at a speed v(t = 0) = vex in the plane Oxy between the two plates of a capacitor.
The field is given by E= Eey. The only force is Lorentz F=qE. Plot the trajectory of this electron.
Python code: plot the trajectory of this electron; use matplotlib.pyplot to plot and scipy.integrate.ode
to solve the problem.
Wrong place to post this: as it says in red at the top of the page you need to be here: Ask a question[^]
But ... we aren't here to do your homework anyway. We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.
So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.
So if you do post this in the right place, you'll need to explain all of that, or you won't get help - we do not do your homework for you.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!