C vs Python: Speed
Submitted by srlinuxx on Sun, 09/07/2008 - 12:54.
Python is a very popular interpreted scripting language. C is a very popular compiled language. Due to its compiled nature, C is generally faster than Python, but is lower-level, making Python programming quicker and easier than C programming.
The questions here are whether or not the extra time taken to run a Python program (without input) will be less cost-effective than its C equivalent and whether runtime time is more important than programming time.
Note: due to technical difficulties, I have placed parentheses around some symbols or removed some tabs from the Python examples
The Systems Program
I decided to make a simple program that resolves the following system of equations:


Recent comments
2 hours 40 min ago
8 hours 24 min ago
11 hours 15 min ago
16 hours 4 min ago
21 hours 42 min ago
1 day 5 hours ago
1 day 6 hours ago
1 day 7 hours ago