DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

y=f(x,{A1,A2,A3...})

 
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions
View previous topic :: View next topic  
Author Message
sailwave



Joined: 31 Aug 2004
Posts: 4

PostPosted: Tue Aug 31, 2004 1:45 pm    Post subject: y=f(x,{A1,A2,A3...}) Reply with quote

Hi,

I am playing with your evaluation copy at the moment. Very nice. I having trouble figuring out if I can do what I need to do through.

I want to plot this function for various values of A (say A= 10,20,30,40,50,60,70,80,90,100).

y = 101 + 1000 * log10(A/x)

With x moving between 1 and A (step 1) for each plot.

I can do it by hand by repeatedly changing A and the limit of x (to the value of A) by hand but would like to automate it if possible.

Can I do that?

(If nothing else if would be useful to be able to refer to constants in the x limit field.)

The reason I need to automate it is that I need to generate hundreds of graphs like this.

Nice program.


Last edited by sailwave on Tue Aug 31, 2004 3:32 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
sailwave



Joined: 31 Aug 2004
Posts: 4

PostPosted: Tue Aug 31, 2004 2:16 pm    Post subject: Reply with quote

Ah... the macro editor?
Back to top
View user's profile Send private message Visit poster's website
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Tue Aug 31, 2004 2:51 pm    Post subject: Reply with quote

The macro editor won't help here; there are no loop structures (other than cycling through all files matching a specification) and no variables. This is something I've toyed around with a bit but haven't yet been happy with the results. Perhaps it will make it into a future release, but it will likely be a while before that happens.

If you're reasonably proficient with Visual Basic or some other language, or if you are comfortable with Excel's VBA, you can fairly easily set the problem up and use DPLOTLIB.DLL to do what you want. If you have any questions about that just let me know.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sailwave



Joined: 31 Aug 2004
Posts: 4

PostPosted: Tue Aug 31, 2004 3:07 pm    Post subject: Reply with quote

OK, thanks; I'll keep looking for something...

NB: y = e^(-x) says "invalid argument at x=1", with 1 <= x <= 100.
Back to top
View user's profile Send private message Visit poster's website
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Tue Aug 31, 2004 3:13 pm    Post subject: Reply with quote

Quote:
NB: y = e^(-x) says "invalid argument at x=1", with 1 <= x <= 100.


Since DPlot doesn't allow for a constant named e I'm guessing you want the inverse natural logarithm of x. Use "y=exp(-x)"
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sailwave



Joined: 31 Aug 2004
Posts: 4

PostPosted: Tue Aug 31, 2004 3:22 pm    Post subject: Reply with quote

Ah, OK. I mistakingly assumed that since there was no "E" field, it was implicitly taken...
Back to top
View user's profile Send private message Visit poster's website
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Tue Aug 31, 2004 4:26 pm    Post subject: Reply with quote

Just an FYI - E isn't used as a constant simply because it's too confusing for the parser to distinguish between a constant E and scientific notation E, i.e. 1.5E+4
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group