It's very interesting to deal with flexible magnets than conventional permanent magnet. The flexible magnets are basically mixture of ferrite powders with some kind of rubber materials. It's magnetic field strength varies with the amount and uniformity of ferrite powders, so the question comes how to calculate analytically.