Ack... drowning... in... parentheses...

I swear, those things are like shurikens in these masses...
I'm trying to make a loan calculator in python, as part of an assignment. I'm basing it off of two things.
1: This website, which contains 3 different calculators.
2: The link from the second calculator (my current pain)
I'm going to have a panic attack, I swear... So many parentheses.
I had to manually derive for the Newton-Raphson portion... and of course, now I have so many frekaing parentheses that I can't tell what the heck I'm doing... I mean, sure, I might be a little parenthesis-happy, but I'm new to this and I want to make sure my groupings are all correct...

Rabblerousers I hate this whole enters thing with parentheses... only way I can see it all in the window...
Takes up a whole freaking lot...
Does little to soothe my pains...
...
Can I get at least one person to help me double-check this, I feel like I'm missing things.
Especially after realizing that I had accidentally hit control+backspace at one point and it erased a small portion at one spot... which means I might have done it multiple times...

And of course, I'm hoping and praying that I get this fixed as I know this will bite my rear in the end if I messed this part up of all things.

Edit: It would be nice if the GUI had color-coded parentheses, to show groupings... or better yet, shading of a similar method...

It would be nice if the GUI had color-coded parentheses, to show groupings... or better yet, shading of a similar method...

Why not use one that does then?

I use Notepad++, but I know that even python-specific IDEs like PyScripter have parenthesis highlighting, etc. In fact, PyScripter will have a red underline on any unmatched parenthesis similar to a "spelling error" in a word processing application.

I think you should learn Lisp to get familiar with parenthesis.
Yes, you are using too many of those in your Python code. You can study up in the precedence of mathematical operations to remove a fair number of them.

I hope you are the only one who has to deal with this code. It may help to remember that the compiler can only do one thing at a time, unless you have a multi-core machine and an OS that is multi-core aware, which is very unlikely. So, for most of us there is little between one long calculation and several shorter ones, from the compiler's viewpoint. But there is a big difference in terms of readability.

Note the lack of a mathematical symbol between two lines of code as pointed out below. Also, all of your calculations are done as integers. You may or may not want floats instead.

## a calculation common to several other calcs
## increase the guess by one and raise it to the power of the number of months
interim divisor = (1+finderGuess)^numberMonths
## this is the do-hickey which is calculated by
## subtractng one from the thing-ma-bob and raising it to
## the power of 2
last_divisor = interim_divisor - 1
last_divisor = last_divisor^2
""" note that there is no mathematical symbol between the first and
second lines in this block of code
(((((1+finderGuess)^numberMonths)-1)
(finderguess*(numberMonths*((1+finderGuess)^(numberMonths-1)))+
(1+finderGuess)^((finderGuess*(1+finderGuess)^numberMonths)*
(numberMonths*((1+finderGuess)^(numberMonths-1)))))
"""
## so the code becomes something like this, making sure that the number are floats, or are converted in the calculations.
finderGuess = finderGuess - descriptive_name_for_numerator /
descriptive_name_for_first_divisor /
descriptive_name_for_second_divisor /
descriptive_name_for_third_divisor /
last_divisor

Hi. so this is actually a continuation from another question of mine[Here](https://www.daniweb.com/programming/software-development/threads/506795/dynamically-add-values-into-datagridview-cell-from-listbox-vb2010) but i was advised to start a new thread as the original question …

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...