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.
1. The lounge is for the CodeProject community to discuss things of interest to the community, and as a place for the whole community to participate. It is, first and foremost, a respectful meeting and discussion area for those wishing to discuss the life of a Software developer.
The #1 rule is: Be respectful of others, of the site, and of the community as a whole.
2. Technical discussions are welcome, but if you need specific programming question answered please use Quick Answers[^], or to discussion your programming problem in depth use the programming forums[^]. We encourage technical discussion, but this is a general discussion forum, not a programming Q&A forum. Posts will be moved or deleted if they fit better elsewhere.
4. No politics (including enviro-politics[^]), no sex, no religion. This is a community for software development. There are plenty of other sites that are far more appropriate for these discussions.
5. Nothing Not Safe For Work, nothing you would not want your wife/husband, your girlfriend/boyfriend, your mother or your kid sister seeing on your screen.
6. Any personal attacks, any spam, any advertising, any trolling, or any abuse of the rules will result in your account being removed.
7. Not everyone's first language is English. Be understanding.
Please respect the community and respect each other. We are of many cultures so remember that. Don't assume others understand you are joking, don't belittle anyone for taking offense or being thin skinned.
We are a community for software developers. Leave the egos at the door.
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.
Last Visit: 19-Jan-20 4:37 Last Update: 19-Jan-20 4:37