Need to edge out the competition for your dream job? Train for certifications today.
// for i=0..N-1
string s = "";
double X = 10;
double Y = 100;
double N = 5;
for (int i = 0; i < N; i++)
double value = Math.Exp((Math.Log(X) * i + Math.Log(Y) * (N - 1 - i)) / (N - 1));
s += value + "\r\n";
Open in new window
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.