Archive for the 'Maths' Category

September 10, 2006

Exam Results

In all the excitement of setting the blog up, I completely failed to realise that I hadn’t posted this year’s exam results. I do it every year so that I have a track of what results I got, so if you really can’t bear to look (for whatever reasons) I suggest you turn away now.

I must warn you that this is a very long post, and probably not of interest to most people. Only read onwards if you’re really interested in maths, or possibly want to find out just how crazy I really am.

Read More »
Continue reading “Exam Results”…

8:58 pm | Posted in Academia, Exams, Maths | 5 Comments » | Show comments »

June 11, 2006

Photography and its many distractions

Well, after a long and arduous battle with exams, I’ve finally finished my third year. I don’t really want to comment on the exams – not that they went particularly badly, it’s just I’d rather wait until I get the results. So, instead, I will comment on the various things that I’ve been doing inbetween.

The first, and by far most exciting was my 21st birthday. This has been quite amazing, and my utter thanks to everyone that got me gifts or just said happy birthday – it’s something I’ll remember for quite some time. My main present was the brilliant Canon Digital Rebel XT, otherwise known as the EOS 350D.

Some explanation may be required. My dad in his early years was a professional photographer for Land Rover. He moved onto do video work, and similarly I share his passion for video and photography in general. I bought myself a happy–snapper Sony camera at the beginning of the first year, but up until this point was somewhat underwhelmed, since I wanted more control with how exactly I wanted the image to be taken.

So, I now have a Digital SLR camera, which is quite frankly an amazing piece of technology. For those that are interested in getting a DSLR camera, I really have to suggest the 350D. I found it a breeze to get into, and it’s extremely easy to use and get to grips with. The build, whilst a little plastic for my liking, is very solid. I highly suggest you get the lens kit – you get a 18–55mm EF–S lens which provides pretty good quality despite the plastic exterior. It’s not brilliant, but for a budding amateur like myself, it’s a good start.

Unfortunately the 18–55mm really doesn’t have enough reach for my liking. I went out earlier in the week with Mark to take some snaps of the nature reserve on campus, and while we were there I spotted a number of shots that really needed a telephoto lens. This is where things start to get tricky, because when you’re on a limited budget like me, lenses aren’t generally an option.

However, I decided it was worth investing in. I spent the majority of the day researching various lenses, reading the EOS FAQ (which is an excellent introductory FAQ for beginners) and eventually came to the conclusion that Canon didn’t make any decent enough lenses for the prices they offered. I really, really wanted the 75–300mm USM IS lens, but at £360 it was just far too much to pay. In the end, I decided to get the Sigma 70–300mm APO Macro DG. According to all of the reviews I’ve read, it’s a decent lens for a bargain price (£165) so eventually I decided to take the plunge. That should turn up on Tuesday.

So, for the time being, I won’t be buying anything else for the camera. I should have everything I need for the time being, although I would absolutely love a Canon L–series lens. However, that’s way off in the future as far as I’m concerned. Anyway, with all of this photography lark, I’d really like to get the website up and running so that I can host my images nicely. So there’s that to work on tomorrow, and then we’ll see what happens.

That’s far too much for tonight, I feel, so I’ll sign off for now. Toodle pip.

10:15 pm | Posted in Maths, Photography, Randomness, Warwick Blogs | 3 Comments » | Show comments »

April 24, 2006

Well, that was fun…

…or not.

I am, of course, talking about that most delightful of subjects, Measure Theory. The examination in question was held this morning, and it is fairly safe to say that, barring moderation, I will be failing that course quite badly.

My major problem with the exam was the style in which it was set. Frankly, it was clear to me that he simply couldn’t be bothered coming up with some decent questions. Pretty much everything on the paper was a 10-mark question, and two questions were split into 5/20 mark parts each.

I did the majority of the first question fairly well, I think. But unfortunately that’s where the limit of my knowledge reached. The second question was basically a lovely “state and prove the Dominated Convergence theorem” – 20 marks. Right, okay. Maybe that’s a reasonable question. But to just say “prove it”, and not break it into any sort of parts or guide you in any way is just lazy and completely unacceptable. Especially when you give the ultimately useless advice of “don’t try to learn large proofs, learn the ideas!!” on your website.

The third question was split into 15/10 mark parts. Yet again – absolutely no guidance at all, so I basically had no clue whatsoever. Question 4 was another lovely 20/5 part. The 20 mark question? “Prove f is in L1(0,1)”. Great. Thanks so much. Not even so much as “using theorem x”, or “Hint: try this…”. Just prove it. Finally, another lovely question on Lp spaces, and another lovely 15/10 mark split. Just amazing.

I don’t usually go off on people and examinations like this, because I do believe that if I do badly in an exam, 99 times out of 100 it’s going to be because I didn’t bother revising something. But giving advice on the website and then setting the exam on stuff that you told us not to revise fully is just a complete waste of my time. I spent a lot of hours sitting and finishing off the assignment questions, and to what end? I could have just sat there twiddling my fingers and I would’ve come out of that exam feeling exactly the same.

I left after about an hour. Quite a few people left after me, and maybe the fact that so many left in an exam that’s supposed to last three hours will give him a gentle hint. Some people came out saying that they didn’t think it was that bad, but to be honest, those guys are going to be very good at every exam they take or just got lucky. If you sit down and take the time to memorize the proof of the Dominated Convergence theorem, then that’s 20 marks, no sweat. If, like me, you didn’t think it was going to come up because everything pointed towards it not coming up then you’re in a lot more trouble.

Sure, I’m not the best student in the world. But I can do some of Measure Theory. The reason that I screwed this up so badly is that unless you knew how to do all of Measure Theory or were lucky enough to know the right bits, then the exam was a disaster.

So, what advice would I give coming out of this exam? (Not that anybody will listen, but hey).

To Dr. Valeriy Slastikov: This exam was unfair, period. I’m not unintelligent, but as a result, the hard work and effort that I put into revision counted towards precisely nothing. That is the most utterly frustrating feeling that one can get out of mathematics. Please take five more minutes to put together questions that aren’t completely impossible for those people who aren’t absolutely brilliant.

To second year students: Don’t take Measure Theory unless the lecture course is altered or the lecturer is changed. Simple as that.

PS: Please don’t bother writing comments if you’re going to say “hah, you deserved it you idiot!!!!oneoneone” because I can’t be bothered dealing with that sort of nonsense. These are my opinions, and if you disagree that’s fine, but please be constructive.

2:14 pm | Posted in Exams, Maths, Warwick Blogs | 3 Comments » | Show comments »

April 22, 2006

Three down, one to go

Well, had the old double-whammy yesterday and overall it was a bit disappointing.

Started with Introduction to Topology in the morning. As soon as I turned over the paper and read the first question, I knew that something had been drastically changed. I’ve done the past five years’ worth of papers, and, apart from one year which was done with a different lecturer, the format of the paper hasn’t changed at all. Basically the format is topologies, compactness/connectedness, identification maps/quotient spaces, the fundamental group and finally surfaces.

This year, the overall format was the “same”, but the standard of question was much harder. It came as somewhat of a shock to the system, but I don’t think I’ve done that badly. Amazingly, read the proof of Lebesgue’s lemma, and it came up on the exam. Unfortunately I completely forgot the proof and couldn’t answer in there. Oh well. Somewhat annoying was the lack of any “give without proof examples of…” question which would have been extremely useful. Overall though, I’m hopeful of a mark in the 70–80% region.

Combinatorics was, unfortunately, somewhat of a different story. I (barely) answered 4 questions worth of material, and I think that overall I’ll be quite lucky to get around 50% of the marks, tops. Mostly because I made all of it up. Hopefully there’ll be a certain degree of moderation as I think everybody found the exam quite hard. The annoying thing was the presence of probability stuff in not one, but two of the questions which I found extremely annoying – after all, I have pretty much no knowledge of anything to do with statistics at all.

So we’ll see. One last exam on Monday before three more weeks of revision, and then the second lot starts. But before that, the joy of Measure Theory. That could be very interesting.

10:23 pm | Posted in Exams, Maths, Revision, Warwick Blogs | No Comments »

April 19, 2006

First exam… done

So the first exam, Topics in Mathematical Biology, is all out of the way and done. My impressions were that it was fairly similar to the last two years’ worth of past papers, and having done those and the question sheets, it made it slightly easier. However, I couldn’t help but feel that the questions themselves were quite bulky. I found there was an awful lot to do for each question – especially the first, which took me about 45 minutes!

I attempted questions 1–3 and 5. I only answered question 1 in its entirety due to immense time constraints, but I got the vast majority of the work done. For the most part it seemed fairly correct. Unfortuantely I couldn’t quite remember how the very end of the singular pertubation question was supposed to work, so even though I’d got down to the inner and outer solutions, I couldn’t match them up properly to get the composite which was annoying. However, I gave it a decent shot so we’ll see what happens.

Question 3 was actually quite interesting and I very much enjoyed it. I did manage to complete all of the parts barr the very last bit, for which I basically scrawled something down when we were told to put our pens down. Managed to get the same answers as the question, so that’s got to count for something.

Didn’t attempt question 4 since I know next to nothing about lambda-omega wavetrains, so sat down and did question 5. Didn’t do the initial 3-mark starter question as I meant to come back to it later but again, didn’t get around to it which was a bit annoying. Got through most of it with ease, but unfortunately discovered a mistake in the very last part which means that I’m going to have lost a couple of marks.

However, it’s all over and done with, and I’m fairly pleased with what I’ve written. I can’t account for moderation and stupid errors on my part, but I guess that 70% isn’t an outrageous estimate. I’d be very pleased with that, considering I only actually went to one of the lectures for the entire course.

Next exam is on Friday morning, and it’s Introduction to Topology. I’m actually really looking forward to that since it’s one of my favourite lecture courses of all time. Unfortunately I also have Combinatorics immediately afterwards, so tonight will be spent completing the very last topology paper, and tomorrow I’ll mostly do Combinatorics.

So, we’ll see how the both of those go. Will hopefully update the blog afterwards, but that depends on how much time it’s going to take since the dreaded Measure Theory is on Monday morning. Eek.

8:31 pm | Posted in Exams, Linux, Maths, Warwick Blogs | No Comments »

April 12, 2006

Past Exams and More Programming

Well my brain is thoroughly fried; just completed the 2002–2003 past exam papers for Combinatorics and Topology, and now I can barely concentrate so I’m going to take a large break and try not to think about how much I’m going to screw up Measure Theory. Anyway, thought I’d post another entry and see if I can get myself on a roll. Like that’s going to happen.

So, last night I mainly concentrated on getting this homemade YUV overlay built, and it seems to have worked nicely. The problem wasn’t Mesa, more the fact that I was generating 5 textures/frame, and telling OpenGL to overlay them in a very inefficient way. After spending some time reading up on Cg shaders, I created a basic fragment shader that did the job super quickly with only three textures. So I’m happy.

The other topic on my programming agenda is the blog. I really want to get going on my own website, and the blog is quite an integral part of that. I’m quite picky when it comes to having multiple copies of things, and I don’t like the idea of all of my original blog entries being separate from the blog entries here. So I’m going to have to come up with some way of keeping a central store of blog entries and comments, somehow. I was thinking that I might use a cronjob’d php script to grab entries and comments via RSS or similar, then update the database accordingly. But again, there are problems to this approach – what happens when I get a load of entires on here?

Bah, I’ll have to thnk of something. But besides that, I’ve been playing around with PHP’s PDO objects and they’re very cool. I’ll never have to worry about manually escaping my SQL data again. I’ve created a basic abstraction layer for some common functions, but I’m sitting here wondering whether it’s really worth it. Right now, I’m thinking “probably not”.

So those are the things going on at the moment. I should probably be revising, but I’m sick to death of it by this stage in time. Can’t wait until next year – the more 100% assessed modules, the better.

4:59 pm | Posted in Computing, Maths, Revision, Warwick Blogs | 2 Comments » | Show comments »

April 11, 2006

Damned Revision

Well, it’s been a whole load of time since I posted, mainly due to revision and lazyness on my part. So I thought I’d post a quick update on what I’m doing – not that anyone will be all too interested.

So I’m back in Walsall after spending a week down at Sarah’s. Unfortunately, things haven’t been brilliant on the revision front. Whilst I’m mildly optimistic about Combinatorics, Introduction to Topology and to a lesser extent Topics in Mathematical Biology, I know that Measure Theory is going to be awful. I’ve not done a lot of work for it, and to be honest, I just don’t understand a lot of the material.

However, on the upside, I’ve finished all of my Topology and Topics exercise sheets, which is something that has never been done before. I’m now at the stage where, a week before the dreaded exams, I’m getting my act together and doing three past exam papers a day. So maybe there’s hope yet; we shall see, I suppose. I figure that even if Measure Theory goes badly, I can still pull it up with some better marks from the other modules.

However, I didn’t really want to talk about exams so I’ll talk about something equally as boring – programming. Been playing around quite a bit with two things over the holidays. Firstly – and this has been on the agenda for some time now – coding an OpenGL GStreamer application to map video onto a cube or some other random object. Surprisingly, this was initially very easy, once I’d found out how to actually get the contents of the GStreamer buffer into my program.

Basically I use decodebin to get the video playback working, and then pipe it through ffmpegcolorspace to get a nice RGB texture. Then, I use fakesink and a handoff function to actually generate the texture to screen and map it onto a cube. The hardest bit was actually finding out about the handoff function – it’s buried deep inside the GStreamer Plugin Guide, which is quite annoying. However, it does look quite cool. You can even take a look at it for yourself if you’d like.

Even so, I wasn’t quite satisfied. The biggest speed hump is the ffmpegcolorspace conversion, as generically most video files use some kind of YUV format to store video frames. Typically, and somewhat ashamingly, there’s no general way of dealing with YUV textures in OpenGL – all of the extensions out there generally suck, and don’t work for different versions. Plus, none of them cope with 4:2:0 planar YUV, only 4:2:2 pixel-packed for the most part. So some form of conversion to RGB is required, and a significant amount of CPU overhead is incurred in the process.

For the last couple of weeks I’ve been looking at various ways of efficiently using the GPU to do this conversion for me. Colour matrices were the first option I looked at. Basically, given some texture, one can use a colour matrix to remap colours in any given format. However, the major problem is going from 4:2:0 planar to 4:4:4 pixel packed, and that itself incurs quite a significant overhead.

Blending textures is possibly the best way of doing this. Basically, one generates 5 different textures along with using a simple colour-lookup table. Firstly, we lay down the Y channel as a luminance channel. Then the additive U, then subtractive U, and the same for V. In effect, just layering one channel on top of another to simulate the YUV->RGB conversion in the GPU.

However, there are again problems with this. The naive approach is to redraw texture upon texture, which means that every pixel needs to be redrawn 5 times every frame – at 25fps, that’s 125 times/second! In order to get the most out of the GPU, I used the ARB_multitexture extension, which allows you to layer textures extremely quickly in one pass. I also delved into the world of shaders to try and work out whether it might even be worth usnig only 3 textures and doing the RGB conversion through a simple ARB fragment program. This is something I’m still looking into.

Unfortunately, although this actually works and I’ve tested it, it’s still very very slow. However, I’m using quite a crap Intel 915GM based GPU under Linux. The i915 driver is not particularly good at the moment, and upgrading to Mesa 6.5 seems to have made matters even worse. glxgears is showing only 600fps – I should be getting at least 1300 according to other guys with the same card. So I’m guessing – and hoping – that the problem lies with the drivers and not my card. When I get back, I’m going to check it out on my Radeon 9800 and we’ll see how that copes.

Anyway, that’s probably enough for now. I’m going to reboot and see if I can get this all working nicely.

10:00 pm | Posted in GStreamer, Linux, Maths, Revision, Warwick Blogs | 3 Comments » | Show comments »

March 14, 2006

End of Term

Well, after the complete downer at the end of term, things are looking up. I’m spending a week down in Plymouth with Sarah, and it’s been nice and relaxing so far. I’ve spent quite a few hours coding on the website tonight, trying to get things done by the end of the week. When I get back on Saturday, I’m going to have an awful lot of revision to do and not a whole load of time, so for the main part I will probably not be blogging or doing much else than revision.

My first four exams are at the beginning of April, and I’m not looking forward to them that much.

  • Topics in Mathematical Biology
    The course itself doesn’t seem to be too hard. Sure, there’s non-linear PDEs and all that jazz, but we don’t seem to actually do an awful lot with it. The problem with this exam is definately going to be the sheer amount of things that we have to know. And, unfortunately, there’s just no way around that apart from extensive revision.
  • Introduction to Topology
    I’d like to think that at this point in time, I understand topology fairly well. Again, there’s a fair amount to revise for but this is something that I can tackle, and it certainly isn’t insurmountable in terms of understanding. Which is always good. I just hope we don’t get a nasty exam.
  • Measure Theory
    This one has me a little worried. The problem is that there’s a lot to revise for and it’s also quite challenging from the standpoint of knowledge. We didn’t have the best lecturer, so that doesn’t really help matters. Really need to get going on some past exam sheets and do some questions.
  • Combinatorics
    I understand and enjoy this course. My only worry is that the lecturer, Daan Krammer, sets a nice(ish) exam. Last year’s was pretty nasty, and although it’s fairly easy to do, it takes a lot of time - not something that you have an awful lot of in the examination rooms.

Anyway, this is all worrying about nothing at the moment. I’ll worry more when I get back to Coventry and get going on the actual revision. For the time being, I’m going to drink some tea and enjoy myself here (as much as I can).

On the website front, I’ve finally got the “proper” CSS coding in place which means user-selectable themes! I know that’s what you’ve all been begging me for in a completely silent fashion. But yes, I have three CSS templates for the new (WB) theme, the default theme and also the old theme which did mainly suck. But there we go. Just need to write the appropriate bits for password changing, selecting themes, profile information perhaps and a couple other things, then I’ll have something that closely resembles a proper website.

I’m also going to make a distinct effort when I get back to catalogue all of my loose pieces of code here and there that do minorly useful things. I really want to put them on the web, since at least some people might e-mail me. I like e-mails, after all.

On top of that, I hope to accomplish the image catalogue as well as putting the photo galleries back online. I’d also quite like to optimize the scripting so that it all runs a lot faster and uses less SQL queries. Also, the CSS could, as always, need some work but I think I’ll leave that for the time being.

I can’t wait to get this thing finished. It’s been a long time coming and, considering the amount of work I’ve put into it, I’ve not had a lot to show for it. Certainly the coding will be most of the work, but I must sit down and actually write some content, otherwise this place will be nothing more than a skeleton. I’m more determined than ever that during this exam period I will blog more than I have done before. I need somewhere that I can vent my frustrations and not bombard my poor Sarah with rambling maths questions.

Anyway, I must stop writing now as it is certainly time for bed. Tomorrow, I think I’ll mainly concentrate on the user control panel and get that out of the way. Once I get that done, I can move on to sort out the other bits and pieces that are more shiny.

1:16 am | Posted in Exams, Maths, Site Development, University, XHTML/CSS | No Comments »

February 22, 2006

Oh dear, quite late for this

Well, it’s a little later than I wanted to go to bed, but oh well. Got quite a bit of work done on the project tonight; fixed some problems with the code, cleaned it up and general polishing. Also, fixed a couple of design flaws that were just annoying me; can now hook up more than one output module to each PDESolver object, which is nice.

Basically, the PDESolver object is an abstract class which has one virtual function, solve(). This is implemented by subclasses allowing me to very quickly and easily create new methods for PDE solving without going through all of the hassle of starting from scratch. As a part of this, I also created another abstact class, PDEOutput, which is designed to allow sub-classes to implement output methods (such as to files, X11). Up until this point, I could only output to one PDEOutput object at once; now I can do multiple things, which is always good.

I also now have some very funky 3d visualizations of my solutions thanks to OpenDX. It’s really starting to come together; hopefully if I pull my finger out and finish off the write-up tomorrow then I can get it all done and printed out by the weekend. Here’s for hoping, at least. I’m going to try and put the graphs on here for everyone to see because they’re really quite nice. However, I’ve not got them quite to my liking yet and I still feel that they need a bit of tweaking. Hoping to find some way to get some good anti-aliased fonts out of OpenDX.

Aside from this, I watched Robots tonight (which was my Valentine’s present from Sarah). I’ve forgotten how much I loved that film; it was definately a good one from Blue Sky. Can’t wait for Ice Age 2.

Anyway, I’m definately going to bed now. Need some sleep, and I’m doing campus tours tomorrow. Wouldn’t want to give the prospective undergraduates bad ideas about student life, oh no…

2:56 am | Posted in Computing, Maths | No Comments »

February 19, 2006

Not enough time in the day

I clearly don’t have enough time in the day for everything I want to do. Almost have IMAP set up at home so that I can remote access all of my e-mail from either my desktop or my new laptop without having to transfer it all everywhere. Just got to set up fetchmail and procmail to fetch and move the appropriate messages.

Apart from that I’d like to work on the website but it’s currently far too early in the morning to attempt such a task. Today I copied ~20 sides of notes from various lectures, which brings me (almost) back up to date. The only lectures I have left to copy up are ones that I don’t yet have notes for - definately something to chase up on Monday.

Other than that, went to Skool Dayz for Mark’s birthday party. Apologies to all that were involved - I am hopeless at going out to the Union, and I probably shan’t do it again. The last time I actually visited the place was the Elections Party in my first year.

Computational PDEs has been worked on over the past couple of days. This time I have to create a program to model either the regular KdV equation or the modified KdV equation (there’s not an awful lot of coding difference to either method). I’ve completed the programming itself, but I’ve run into a couple of odd things. Namely, my oscillations start at double the time that they probably should do. Hopefully I’ll talk to the lecturer on Monday about this as I’m a little confused as to what is actually involved.

Anyway, I shall hope to squeeze in a bit of time on the website sometime tomorrow. Have quite a lot of work to do in the meantime, but I’m optimistic that I can get it done now that I’ve pretty much finished the coding for my Computational PDEs module. We shall see, I suppose.

2:26 am | Posted in Computing, Linux, Maths | No Comments »