Fortran How to change data from linear scale to log scale

AI Thread Summary
The discussion focuses on converting laser intensity (IL) data from a linear scale to a logarithmic scale to analyze its relationship with growth rate (m). A participant initially plotted IL against m but found the output unacceptable, prompting a reevaluation of the scaling method. Clarification is sought on the mathematical operations required for converting IL values to a log scale, specifically how to represent values like 10^15 and 10^18 in a logarithmic format. Additionally, there is confusion regarding the differences between plotting intensity on a log scale versus using the natural logarithm, as well as the implementation of these plots in MATLAB. The conversation emphasizes the need for clear mathematical understanding and practical application of logarithmic scaling in data visualization.
Amany Gouda
Messages
29
Reaction score
0
I am trying to calculate and draw a relation between (IL) and the Growth rate (m).
I have used Il as range from 10^15 to 10^18 in the calculation and when I draw the relation (x-axis ) is Il and (y-axis ) is m. I converted the IL to be in log scale.
I noticed unacceptable output.
So, I am going to repeat the calculation again by by using IL in log scale.
is there any mathematical relation can be used to make this conversion for IL.
Thank you
 
Technology news on Phys.org
"IL?"
 
Bystander said:
"IL?"
IL: Laser intensity ranging from 10^15 to 10^18.
 
Amany Gouda said:
I am trying to calculate and draw a relation between (IL) and the Growth rate (m).
I have used Il as range from 10^15 to 10^18 in the calculation and when I draw the relation (x-axis ) is Il and (y-axis ) is m. I converted the IL to be in log scale.
I noticed unacceptable output.
So, I am going to repeat the calculation again by by using IL in log scale.
is there any mathematical relation can be used to make this conversion for IL.
As I understand it, you have a data set of unknown origin which is a collection of ordered pairs: (IL, m). You have plotted this (a scatter graph?) and obtained a plot that is "unacceptable" for some reason.

You now want to re-scale the x-axis on a log scale and you want to know a mathematical operation that can take an unscaled value for IL and convert it to a scaled value. So, for instance, 10^15 is represented as 15 and 10^18 is represented as 18.

What operations have you considered so far?
 
[I've put some of your words in boldface for emphasis.]
Amany Gouda said:
[...] I converted the IL to be in log scale.
I noticed unacceptable output.
So, I am going to repeat the calculation again by by using IL in log scale.

But you already converted IL to log scale? I think you should clarify this.
 
Hi all,
I have experimental data that obey mono- or biexponential behavior (without or with offset): I = I0*exp(-t/T2), I = I0*exp(-t/T2) + offset1, I = I1*exp(-t/T2_1)+I2*exp(-t/T2_2), I = I1*exp(-t/T2_1)+I2*exp(-t/T2_2) + offset2. I is intensity, t is time, T2, T2_1 and T2_2 are time constants. I1 and I2 reflect fractions of T2_1 and T2_2 components, respectively. I'd like to ask a question about plotting in semilog scale. What is the difference between plotting intensity on a log scale (and the horizontal axis is time) and plotting ln(intensity) vs time (ln - natural logarithm, or base "e" logarithm)? I don't understand the first one - plotting intensity on a log scale. I know that, for example, in Matlab there are functions loglog, semilogx, semilogy, but again, I don't understand, how they work. What mathematical formulas should I use to implement conversion from standard scale to semilogy scale (when y-axis is in log scale) if I want to do such conversion manually? Moreover, from the Matlab help for semilogy function: "semilogy(Y) creates a plot using a base 10 logarithmic scale for the y-axis and a linear scale for the x-axis". Why do they use base 10 logarithmic scale and not base "e" logarithmic scale? If I want to use semilogy function, but with "e" base logarithm (natural logarithm), how can I implement this, for example, in Matlab? On the other side, plotting ln(intensity) is clear, because in this case I just take natural logarithm of my original intensity values, and then plot these ln(intensity) vs time. I also found the site http://measurebiology.org/wiki/Understanding_log_plots, where topic is "Understanding log plots". On that site, authors show examples of plotting in log scale using Matlab. In the section "Linear vs. log scale", the authors wrote the following: "There are two ways to make a log-log plot in MATLAB. The first is to use the plot command to plot log(y) vs. log(x) on a linear scale.
plot( log10(x), log10(y))
Alternatively, you can use the loglog command to make a plot with log-scale axes:
loglog( x, y)"
Then they show corresponding graphs. These two plots look the same.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...

Similar threads

Replies
21
Views
3K
Replies
6
Views
2K
Replies
0
Views
377
Replies
6
Views
2K
Replies
2
Views
1K
Replies
8
Views
4K
Replies
7
Views
2K
Replies
9
Views
5K
Back
Top