VBForums - Maths Forum
http://www.vbforums.com/
By popular request, a place for you to discuss Maths of all forms. Somewhere to think about algorithms and the applications of maths to programming too.enFri, 23 Feb 2018 03:44:09 GMTvBulletin60http://www.vbforums.com/images/misc/rss.pngVBForums - Maths Forum
http://www.vbforums.com/
<![CDATA[Two Particle motion "approximation" questions]]>
http://www.vbforums.com/showthread.php?858769-Two-Particle-motion-quot-approximation-quot-questions&goto=newpost
Wed, 07 Feb 2018 01:27:58 GMTNot sure if anyone has interest in this type of problem. My Physics textbook (which I am self-studying) has a section for "Computer Exercises", where the intent is not that you work the problems out by hand, but write code to approximate the answer for you. Unfortunately, the answers for these specific questions aren't provided in the book. I've written the code to do the approximations, summing values over minute changes in time, which I'm fairly confident is correct. Just looking to see if someone else can verify my answers.

Problem 1: The acceleration of a particle varies as a function of it's position, as described in the following equation:

a = a0 * e ^ (-b * x)

Where a0 = 3 (units of m/s^2) and b = 1 (units of m^-1)

Use numerical integration to find the position and velocity of the particle at 2.37 seconds.
Edit to add: it is given that x(0) = 0 m and v(0) = 0 m/s

I get v(2.37) ~ 2.435 m/s
x(2.37) ~ 4.425 m

Problem 2: The acceleration (in m/s^2) of a particle varies with time (in s), as described in the following equation:

a = (3 + t^3) ^ 0.5

Use numerical integration to find the position and velocity of the particle at 5.7 seconds.
Edit to add: it is given that x(0) = 0 m and v(0) = 0 m/s

I get v(5.7) ~ 33.97 m/s
x(5.7) ~ 62.83 m
]]>Maths ForumOptionBase1http://www.vbforums.com/showthread.php?858769-Two-Particle-motion-quot-approximation-quot-questionsEqually divide tasks
http://www.vbforums.com/showthread.php?858411-Equally-divide-tasks&goto=newpost
Mon, 29 Jan 2018 16:49:13 GMTHi,
I have a problem with dividing tasks between people. I have 4 tasks, and somewhere between 4 and 11 people to do these tasks on a weekly basis. If there are 11 people, you can just loop through the tasks and the people, and everyone does every task the same amount of times. However, if you have 10 people and loop through the chores, every person gets the same two tasks over and over again, which is unfair. What would be the correct way of dividing the tasks for the even amount of people?
Regards,
MindstormsHi,

I have a problem with dividing tasks between people. I have 4 tasks, and somewhere between 4 and 11 people to do these tasks on a weekly basis. If there are 11 people, you can just loop through the tasks and the people, and everyone does every task the same amount of times. However, if you have 10 people and loop through the chores, every person gets the same two tasks over and over again, which is unfair. What would be the correct way of dividing the tasks for the even amount of people?

Regards,
Mindstorms
]]>Maths ForumMindstormshttp://www.vbforums.com/showthread.php?858411-Equally-divide-tasksFind out if a pixel belongs to a region
http://www.vbforums.com/showthread.php?858293-Find-out-if-a-pixel-belongs-to-a-region&goto=newpost
Fri, 26 Jan 2018 11:52:19 GMTI have a black and white image such as the attached one and I want to calculate the area and center of mass of the inner (hole) region.

The problem I'm facing is for a spcific white pixel how to determine if it belongs or not to the hole i.e. if it's entirely surrounded by the black region.

I assume the web has a lot of related information but I just don't know what exactly to look for. Any ideas?