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.
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!
SciPy is a free and open-source Python library used for scientific computing and technical computing. SciPy contains modules for optimization, linear algebra, integration, interpolation, special functions, FFT, signal and image processing, ODE solvers and other tasks common in science and engineering. (copied from wikipedia.org)
The solution to your problem might need to use one of the models in SciPy.
tutors, smuters ...I've got CodeProject (or that other one).
after many otherwise intelligent sounding suggestions that achieved nothing the nice folks at Technet said the only solution was to low level format my hard disk then reinstall my signature. Sadly, this still didn't fix the issue!
The instructions are encoded as an array of ints per, while the overarching instruction stream is int. This way i can pass it around without requiring dependencies, and I can implement the VM/interpreter in an outside library without requiring a reference to an Instruction class or something.
The thing that's cool about this machine is it's cooperatively threaded. I'm tickled about that. Split jumps to multiple locations "at the same time." so it's concurrent. In reality this was a neat trick wherein i interleave the execution of each thread so i don't have to backtrack over the input.
It's the coolest project I've made this year, and the article is already getting underrated at codeproject.
I think people ph33r regex.
Still, it's so much fun.
Thanks @BillWoodruff for finding my bug that inspired my misguided .NET unicode rant