Search   Memberlist   Usergroups
 Page 1 of 1 [2 Posts]
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!
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!

 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 Page 1 of 1 [2 Posts]
 The time now is Fri Jun 17, 2011 8:49 pm | All times are GMT
 Jump to: Select a forum-------------------Forum index|___Science and Technology    |___Math    |   |___Research    |   |___num-analysis    |   |___Symbolic    |   |___Combinatorics    |   |___Probability    |   |   |___Prediction    |   |       |   |___Undergraduate    |   |___Recreational    |       |___Physics    |   |___Research    |   |___New Theories    |   |___Acoustics    |   |___Electromagnetics    |   |___Strings    |   |___Particle    |   |___Fusion    |   |___Relativity    |       |___Chem    |   |___Analytical    |   |___Electrochem    |   |   |___Battery    |   |       |   |___Coatings    |       |___Engineering        |___Control        |___Mechanics        |___Chemical

 Topic Author Forum Replies Last Post Similar Topics approximating infinite linear programming problems diegotorquemada@yahoo.com Math 0 Mon Jul 17, 2006 10:29 am Book for Linear Programming alex_G1 Math 1 Sat Jul 08, 2006 10:58 pm Unconstrained nonlinear programming: problem with the pro... lucas Math 0 Thu Jul 06, 2006 6:24 pm Unconstrained nonlinear programming: problem with the pro... lucas num-analysis 2 Thu Jul 06, 2006 6:24 pm GC/MSD Chemstation Macro Programming Help Pepelos Chem 0 Sun Jun 11, 2006 5:11 pm