Login

Welcome, Guest. Please login or register.

July 18, 2025, 08:58:57 am

Author Topic: UoM Maths Thread  (Read 30963 times)  Share 

0 Members and 6 Guests are viewing this topic.

hobbitle

  • Victorian
  • Part of the furniture
  • *****
  • Posts: 1235
  • Respect: +110
Re: UoM Maths Thread
« Reply #75 on: May 10, 2014, 12:14:01 pm »
0
Can anyone help me figure out an algorithm here?  I feel like this should be easier than it is.

Say you have a source of light at point (x,y).
Say that the cone of light emitted from this light source is 2D when viewed from above (so we don't treat it like a 3D cone, its kind of like a triangle that goes on infinitely).

You know two things:
1) The orientation angle in degrees to which the source is pointing (clockwise from the positive y axis).
2) The sweep of the beam (anything from 0 to 360 degrees), which is evenly distributed around the orientation angle.

You are given a location (a,b) and asked to determine if the beam of light falls on that location.  Regardless of distance - this point could be a million points away from (x,y) but if it falls within the cone of the beam then it qualifies as true.

I need an algorithm that can determine whether or not (a,b) is within the sweep of the light source at point (x,y).

My first thought was that you could find the equation for the two lines that describe the 'sweep' and then find out if the point is 'above' or 'below' or 'within' those two lines.  But I can't seem to figure out a way to determine the equation for the lines in a GENERIC way (i.e. for all possible orientations and sweeps).

Anyone got any ideas???
2008 - 2010 | Bachelor of Production @ Victorian College of the Arts
2013 - 2015 | Bachelor of Science @ UoM (Bioengineering Systems)
2016 - 2017 | Master of Engineering (Biomedical) @ UoM

lzxnl

  • Victorian
  • ATAR Notes Legend
  • *******
  • Posts: 3432
  • Respect: +215
Re: UoM Maths Thread
« Reply #76 on: May 10, 2014, 12:17:02 pm »
0
Hint. Try using polar coordinates.

Do you have the actual question? Your phrasing is a little bit vague.
2012
Mathematical Methods (50) Chinese SL (45~52)

2013
English Language (50) Chemistry (50) Specialist Mathematics (49~54.9) Physics (49) UMEP Physics (96%) ATAR 99.95

2014-2016: University of Melbourne, Bachelor of Science, Diploma in Mathematical Sciences (Applied Maths)

2017-2018: Master of Science (Applied Mathematics)

2019-2024: PhD, MIT (Applied Mathematics)

Accepting students for VCE tutoring in Maths Methods, Specialist Maths and Physics! (and university maths/physics too) PM for more details

hobbitle

  • Victorian
  • Part of the furniture
  • *****
  • Posts: 1235
  • Respect: +110
Re: UoM Maths Thread
« Reply #77 on: May 10, 2014, 12:30:40 pm »
0
It's not a question exactly, it's something that needs to occur in order to continue with a programming assignment (where the scope is bigger , this algorithm is just a small portion). I thought it was quite clear, what would you like clarified?
Thanks, I'll have a look into polar coordinates rather than trig.
2008 - 2010 | Bachelor of Production @ Victorian College of the Arts
2013 - 2015 | Bachelor of Science @ UoM (Bioengineering Systems)
2016 - 2017 | Master of Engineering (Biomedical) @ UoM

lzxnl

  • Victorian
  • ATAR Notes Legend
  • *******
  • Posts: 3432
  • Respect: +215
Re: UoM Maths Thread
« Reply #78 on: May 10, 2014, 01:43:35 pm »
+1
Can anyone help me figure out an algorithm here?  I feel like this should be easier than it is.

Say you have a source of light at point (x,y).
Say that the cone of light emitted from this light source is 2D when viewed from above (so we don't treat it like a 3D cone, its kind of like a triangle that goes on infinitely).

You know two things:
1) The orientation angle in degrees to which the source is pointing (clockwise from the positive y axis).
2) The sweep of the beam (anything from 0 to 360 degrees), which is evenly distributed around the orientation angle.

You are given a location (a,b) and asked to determine if the beam of light falls on that location.  Regardless of distance - this point could be a million points away from (x,y) but if it falls within the cone of the beam then it qualifies as true.

I need an algorithm that can determine whether or not (a,b) is within the sweep of the light source at point (x,y).

My first thought was that you could find the equation for the two lines that describe the 'sweep' and then find out if the point is 'above' or 'below' or 'within' those two lines.  But I can't seem to figure out a way to determine the equation for the lines in a GENERIC way (i.e. for all possible orientations and sweeps).

Anyone got any ideas???

Clockwise from the positive y axis is an interesting way of defining the orientation angle. But come to think of it, that's the only thing slightly weird for me.

Polar coordinates are ideal here because you don't care about distance. In polar coordinates, that just means the theta coordinate is between two numbers. I'm going to try and do this based on my own interpretation of the question.

So, you have a fixed point (x,y) which is the source and you want to see if (a,b) is in the sweep. You'd be best translating this situation to seeing if (a-x, b-y) would be in the same sweep centred at the origin.

The orientation angle wouldn't change here. Let's call it t. As polar coordinates measure the angle from the positive x axis counterclockwise, your orientation angle in polar coordinates would be pi/2 - t. -t because your angle is measured in the opposite direction to polar convention.
Let the sweep be s. If it's distributed evenly, the sweep ranges from theta = pi/2 - t - s/2 to pi/2 - s + s/2
All you need to do now is show that (a-x, b-y) if converted to polar form has an angle in between the range given above.
2012
Mathematical Methods (50) Chinese SL (45~52)

2013
English Language (50) Chemistry (50) Specialist Mathematics (49~54.9) Physics (49) UMEP Physics (96%) ATAR 99.95

2014-2016: University of Melbourne, Bachelor of Science, Diploma in Mathematical Sciences (Applied Maths)

2017-2018: Master of Science (Applied Mathematics)

2019-2024: PhD, MIT (Applied Mathematics)

Accepting students for VCE tutoring in Maths Methods, Specialist Maths and Physics! (and university maths/physics too) PM for more details

hobbitle

  • Victorian
  • Part of the furniture
  • *****
  • Posts: 1235
  • Respect: +110
Re: UoM Maths Thread
« Reply #79 on: May 10, 2014, 01:56:55 pm »
0

Clockwise from the positive y axis is an interesting way of defining the orientation angle. But come to think of it, that's the only thing slightly weird for me.

Yes, I agree, unfortunately this is the format in which the data is provided to us, so we either have to use it how it is or convert it into something more useful.

Thanks for your thoughts! I'll have a sift through your post properly and see if I can fully understand where you're going with the idea (just in my phone atm).
2008 - 2010 | Bachelor of Production @ Victorian College of the Arts
2013 - 2015 | Bachelor of Science @ UoM (Bioengineering Systems)
2016 - 2017 | Master of Engineering (Biomedical) @ UoM

rhapsody_

  • Victorian
  • Adventurer
  • *
  • Posts: 17
  • Respect: 0
  • School: Derp
  • School Grad Year: 2013
Re: UoM Maths Thread
« Reply #80 on: May 10, 2014, 03:21:51 pm »
0
Hey, sorry for randomly intruding this thread :)

B.sc jaffy, I'm studying Calculus 1 this semester, I plan on doing Calculus 2 next semester too. If I want to be able to do the Maths and Statistics majors later on, it also compulsory to do Linear Algebra next semester/summer? Not sure if I want to drop one of my other science subjects to do it but I feel I will do better in math than other majors I've had in mind so I'm conflicted  :'(
2013: English Language, Methods, Music Solo Performance (41), Japanese (SL), Chemistry
2012: Health and Human Development (42)

ATAR: 95.40

2014 - 2016: Bachelor of Science @ UoM

lzxnl

  • Victorian
  • ATAR Notes Legend
  • *******
  • Posts: 3432
  • Respect: +215
Re: UoM Maths Thread
« Reply #81 on: May 10, 2014, 04:34:04 pm »
0
Linear algebra is a must for pretty much any second year maths subjects, so a maths major will require you to do this subject.
2012
Mathematical Methods (50) Chinese SL (45~52)

2013
English Language (50) Chemistry (50) Specialist Mathematics (49~54.9) Physics (49) UMEP Physics (96%) ATAR 99.95

2014-2016: University of Melbourne, Bachelor of Science, Diploma in Mathematical Sciences (Applied Maths)

2017-2018: Master of Science (Applied Mathematics)

2019-2024: PhD, MIT (Applied Mathematics)

Accepting students for VCE tutoring in Maths Methods, Specialist Maths and Physics! (and university maths/physics too) PM for more details

clueless123

  • Victorian
  • Forum Regular
  • **
  • Posts: 76
  • Respect: +12
  • School: Duno
  • School Grad Year: 2012
Re: UoM Maths Thread
« Reply #82 on: May 11, 2014, 03:39:11 pm »
0
What is a basis for the solution space of a 3x3 identity matrix?  :o
Cookie?

kinslayer

  • Victorian
  • Forum Leader
  • ****
  • Posts: 761
  • Respect: +30
Re: UoM Maths Thread
« Reply #83 on: May 11, 2014, 03:56:45 pm »
+2
What is a basis for the solution space of a 3x3 identity matrix?  :o

The solution space is associated with a linear system, not just the coefficient matrix. You need a system of equations Ax = b to talk about a solution space.

The kernel/nullspace of a matrix is the solution set to  Ax = 0. The nullspace of the identity matrix is {0}, ie. the zero vector.

scribble

  • is sexier than Cthulhu
  • Victorian
  • Forum Leader
  • ****
  • Posts: 814
  • Respect: +145
  • School Grad Year: 2012
Re: UoM Maths Thread
« Reply #84 on: May 13, 2014, 10:29:11 pm »
+1
not sure if anyone else in this thread is interested in systems biology, but there's a seminar on in old geology on friday which could be interesting.

hobbitle

  • Victorian
  • Part of the furniture
  • *****
  • Posts: 1235
  • Respect: +110
Re: UoM Maths Thread
« Reply #85 on: May 14, 2014, 07:03:28 am »
0
I'm interested scribs but can't find any info...?
2008 - 2010 | Bachelor of Production @ Victorian College of the Arts
2013 - 2015 | Bachelor of Science @ UoM (Bioengineering Systems)
2016 - 2017 | Master of Engineering (Biomedical) @ UoM

scribble

  • is sexier than Cthulhu
  • Victorian
  • Forum Leader
  • ****
  • Posts: 814
  • Respect: +145
  • School Grad Year: 2012
Re: UoM Maths Thread
« Reply #86 on: May 14, 2014, 04:57:38 pm »
0
this friday, old geology theatre 1, from 1-2pm. 
its held by MUMS. They run a math related seminar pretty much every friday.

bonappler

  • Victorian
  • Forum Regular
  • **
  • Posts: 58
  • Respect: +3
Re: UoM Maths Thread
« Reply #87 on: May 17, 2014, 04:59:36 pm »
0
For Lin Alg students, is the transition matrix the matrix you have to apply to one matrix, let's call it A and to get another matrix called B? If so, what's the difference between a transition matrix and transformation matrix?

lzxnl

  • Victorian
  • ATAR Notes Legend
  • *******
  • Posts: 3432
  • Respect: +215
Re: UoM Maths Thread
« Reply #88 on: May 17, 2014, 07:15:49 pm »
+1
A transition matrix is a transformation matrix; it is the transformation Tv = v
Its purpose is expressing a vector in one set of coordinates of a particular ordered basis into another set of coordinates in another basis.
2012
Mathematical Methods (50) Chinese SL (45~52)

2013
English Language (50) Chemistry (50) Specialist Mathematics (49~54.9) Physics (49) UMEP Physics (96%) ATAR 99.95

2014-2016: University of Melbourne, Bachelor of Science, Diploma in Mathematical Sciences (Applied Maths)

2017-2018: Master of Science (Applied Mathematics)

2019-2024: PhD, MIT (Applied Mathematics)

Accepting students for VCE tutoring in Maths Methods, Specialist Maths and Physics! (and university maths/physics too) PM for more details

scribble

  • is sexier than Cthulhu
  • Victorian
  • Forum Leader
  • ****
  • Posts: 814
  • Respect: +145
  • School Grad Year: 2012
Re: UoM Maths Thread
« Reply #89 on: May 17, 2014, 10:23:34 pm »
0
i don't understand.