|
|
| Author |
Message |
Euler science forum beginner
Joined: 17 Jun 2006
Posts: 11
|
Posted: Sat Jun 17, 2006 5:20 am Post subject:
A little programming help...
|
|
|
I am not quite as adept in programming as in mathematics, so I was just wondering if any of you could possibly help me with writing a program, preferably in C++, that will solve the below equation for all values of x generated by an array of values for y, and then store the values of x obtained somewhere for use in a scatter-plot:
y=(pi)^x,
Any help would not only be a great assest for cutting down the time of the research I am working on, but would be greatly appreciated as well. Thank you in advance! |
|
| Back to top |
|
 |
abose science forum beginner
Joined: 16 Jun 2006
Posts: 8
|
Posted: Sat Jun 17, 2006 6:16 am Post subject:
Re: A little programming help...
|
|
|
double y[100],x[100];
for (int i=0; i<100; ++i) {
y[i]=(double)4*i/100;
x[i]=log(y[i])/log(M_PI);
}
Euler wrote:
| Quote: | I am not quite as adept in programming as in mathematics, so I was just wondering if any of you could possibly help me with writing a program, preferably in C++, that will solve the below equation for all values of x generated by an array of values for y, and then store the values of x obtained somewhere for use in a scatter-plot:
y=(pi)^x,
Any help would not only be a great assest for cutting down the time of the research I am working on, but would be greatly appreciated as well. Thank you in advance! |
|
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Fri Jun 17, 2011 8:49 pm | All times are GMT
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
Other DeniX Solutions sites:
Electronics forum |
Medicine forum |
Unix/Linux blog |
Unix/Linux documentation |
Unix/Linux forums |
send newsletters
|
| |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|