I've got some open-source code which I'd like to translate into different programming language (it is a scientific library and it is the only open-source piece of code that does the thing, so I don't have much choice). Parts which I am interested in are GPL, LGPL and BSD (some code is in one, some in another).
This would be a total rewrite, and not a simple modification, but based on the original code. Would I have to use original license for new code?