Hello,
I just copied this code from the MIT video lecture that is posted online: (Lec 23 | MIT 6.00 Introduction to Computer Science and Programming, Fall 2008). Since I had to copy it from a video lecture, I'm not sure I got the complete program. It is not working as is, I could use some guidance.
Thanks.
import pylab, random
clas...
I know this is kind of an odd question. Since I usually develop applications based on the "assumption" that all users have a slow internet connection. But, does anybody think that there is a way to programmatically simulate a slow internet connection, so I can "see" how an application performs under various "connection speeds"?
I'm not ...
hi,
i have a big problem in a simulation model.entities arrrive before and wait until 6.00 am.And entities arrive after 6.00 am dont get any problem and walk inside. How to model this in Rockwell arena????Please help??
Regards,
nilani.
...
Hi,
I am attempting to use OpenMP in my project that contains N agents in a simulation. Every agent has a position vector. Inside my program, I do something like the following:
for(int i=0;i<agents.size();i++){
for(int j=0;j<agents.size();j++){
if(i==j) continue;
if(distance_between(i,j)<10){
//do a lot of calculations for ...
i am trying to find if there is a turtle on patch ahead n whos speed - accelaration is <= 0. the code i came up with is:
if any? turtles on patch-ahead n with [speed <= (speed - aceleration)]
but this gives an error that patch-ahead expects a number, instead got agent set.
pleae help how can i do this.
n is a number variable. i want ...
I want to build a site similar to Hatrick or soccermanager.com
but im not sure where to begin any tips/ help would be great!
cheers
...
while running the following code
if any? (turtles-on patch-ahead q)
[
some commands
]
where q is a number variable
there is a run time error saying: turtles-on expected the input to be agent or agent set but got nothing.
what can be wrong.
...
I've got a table of values telling me how the signal level changes over time and I want to simulate a harmonic oscillator driven by this signal. It does not matter if the simulation is not 100% accurate.
I know the frequency of the oscillator.
I found lots of formulas but they all use a sine wave as driver.
...
I want to simulate a microprocessor designed using VHDL in ModelSim. I wanted to know what the output file format of the simulation is?
I also want to load some HEX file on the ROM of this Microporcessor...what should I do?
Thanks.
...
Hi everyone,
i am writing a program which simulates an activity, i am wondering how to speed up time for the simulation, let say 1 hour in the real world is equal to 1 month in the program.
thank you
the program is actually similar to a restaurant simulation where you dont really know when customer come. let say we pick a random num...
hi everyone,
i am writing an event driven simulation program. i have 3 subclasses that inherit 1 base class. i need to generate those three randomly and each subclass will go through different event path (sorry its a bit hard to describe what i meant), ill give an example:
let say we have a car park simulation at a mall, we have the ba...
I am making a windows upper filter driver for serial and parallel ports.
I want to test it in a virtual machine and I need some sort of software that can simulate communication over these ports with the VM. Any hints?
...
I'd like to write an application, which would imitate a player in an online game.
About the game: it is a strategy, where you can:
train your army (you have to have enough resources, then click on a unit, click train)
build buildings (mines, armories, houses,...)
attack enemies (select a unit, select an enemy, click attack)
transport ...
Hi
I have a translation transformation in C# WPF that starts when a checkbox is ticked, and I would like it to stop when you uncheck the checkbox, naturally. How do I do this?
Thx
...
I'm trying to find out if any sample Cloth simulation exists with code in WPF or Silverlight.
So far this is what I've found:
It's been done in DirectX and then used as an ImageBrush in WPF, but I mean without a DirectX and without a C++ dependency.
It's been done in Flash and even Javascript so it's definitely possible performance wi...
hi, i am writing a simulation about vehicle manufacturing, i am wondering how i can create objects based on time..
i have a base class Vehicle, and children Motorbike, Car, and Truck.
1 Motorbike will be manufactured every 1 hour,
1 car will be manufactured every 3 hours,
and 1 truck will be manufactured every 8 hours.
how can i create...
I have a sequence of ones and zeros and I would like to count the number of alternations. e.g.
x <- rbinom(10, 1, 1/2)
> x
[1] 0 0 1 1 1 1 1 0 1 0
Thus I would like to count (in R) how many times the sequence alternates (or flips) from one to zero. In the above sequence the number of alternations (counted by hand) is 4.
...
I'm trying to write a fake vector for my class assignment, and I currently get an error in the member function pushBack.
The compiler doesn't seem to like incrementing the SIZE variable which holds the number of elements in the "vector". Is there something I might need to fix?
Your assistance would be highly appreciated for helping me wi...
Hi everyone, about two years ago I heard of a CS intro course designed around simulating a computer from gates all the way up. The only details I think I remember are that the course used Java and was available as a free online resource.
If you know what course this is, I'd appreciate the pointer though Google might wonder why my sudden...
Hi
I want to be able to connect a computer A's USB port to computer B's USB port so as to make computer A act as computer B's keyboard.
Any idea how I would go about doing that?
I'm not looking for a ready-made solution (though if one already exists and is open-sources I
would not object), but for a starting point or a good resource....