For example, say that I want to make a program that solves linear equations.
Say I find an open source program that does this and I decide to read it, study it, and generally tweak it to my liking and keeping around 70% of the code.
If I give 100% undisputed attribution to the original author both in source code and my website (I'm not a thief and give credit where credit is due), would this be illegal and frowned upon by my fellow peers?