|
From: Camilla M. <cam...@gm...> - 2009-11-08 13:21:10
|
Dear all,
first of all thank you so much for the help on my last question.
I am now doing a mathematics modeling portfolio, and I need to plot a
function.
Question 1
I have the following code written in a textfile
set grid
set ylabel "Amount"
set xlabel "Hours"
q=1.124
b=50000
a=1000000
f(x)=(q**x*a)-b*((1-q**x)/(1-q))
g(x)=1*10**12
plot [0:200] [1.0*10**6:1.5*10**12] f(x), g(x)
However, whenever I try to plot the function f(x), I cannot see it in the
graphing window.
I tried decreasing the values for constants b and a to 50 and 1000
respectively, and then the graph *does *appear, but when I increase the
values
there is no graph. What is the obvious mistake that I'm making? The scale
should be fine at least according to preliminary graphs on a graphing
calculator.
Question 2
When I plot big values in gnuplot, the y-axis labels are first written as
8000000, 9000000 and then the label changes to "calculator notation"
with the "e". I want the labels to be for example 8.0*10^6. I tried changing
the notation by using the command
set format y "10^{%L} , but then the labels become just 10^8, 10^9 and so
forth. Is there a possibility that I could change this?
Thank you once again for the huge help!
|