Group Abstract Group Abstract

Message Boards Message Boards

[?] Plot a graph for viscosity vs. molecular weight?

Posted 8 years ago
Attachments:
POSTED BY: Arm Mo
4 Replies

The graph in the book uses logarithmic scales. Did you try LogLogPlot?

POSTED BY: Hans Dolhaine
Posted 8 years ago

Yes I think you are right! Thank you,

POSTED BY: Arm Mo

Hold the expression using With and insert a value for a

With[{a = 1},
 Plot[{a M1 + a M1^3.4}, {M1, 1, 100}, PlotRange -> Automatic]
 ]

Same thing can be done, instead of setting the value for Mc

With[{Mc = 54},
 ee[M_] := If[M < Mc, M, M^3.4];(*ee is viscosity[\eta]*)
 Plot[ee[M], {M, 1, 100}, Filling -> Axis]
 ]

Make the EE functions of two arguments, then supply the value of a using the manipulator

EE1[M1_, a_] := a M1;
EE2[M1_, a_] := a M1^3.4;

Manipulate[
 Plot[EE1[M1, a] + EE2[M1, a], {M1, 1, 100}, PlotRange -> {0, 2*^7}],
 {a, 1, 3}]
Posted 8 years ago

Thanks for the reply, I see that manipulate expression that you sent works, thank you. However, the graph doesn't look like what I see in book (figure attached). I think I have problem with PlotRange..?, maybe plotting conditional functions are different? \Eta is a function of M if M is less than Mc=600 M then \Eta is linear , if M is greater than Mc then plot is non linear.

POSTED BY: Arm Mo
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard