Thanks for the very speedy reply Bob! I have one question though - is that the equation for the field outside the solenoid but still on the axis or will this work for any point in a 3D space? (Am i asking too much for it to be as simple as this for 3D? :P)
I'm trying to write a program to simulate the fields generated by a solenoid but I've hit a bit of a brick wall. There is a vast amount of examples and information on the field generated inside a solenoid however they all assume that the field outside is negligible and as such I have been having...