FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Forum index » Science and Technology » Math
A little programming help...
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Euler
science forum beginner


Joined: 17 Jun 2006
Posts: 11

PostPosted: Sat Jun 17, 2006 5:20 am    Post subject: A little programming help... Reply with 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
abose
science forum beginner


Joined: 16 Jun 2006
Posts: 8

PostPosted: Sat Jun 17, 2006 6:16 am    Post subject: Re: A little programming help... Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Fri Jun 17, 2011 8:49 pm | All times are GMT
Forum index » Science and Technology » Math
Jump to:  

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

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
[ Time: 0.0607s ][ Queries: 16 (0.0365s) ][ GZIP on - Debug on ]