Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11466 > unrolled thread
| Started by | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| First post | 2012-08-24 00:49 +0000 |
| Last post | 2012-08-24 00:49 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Ambiguity of "Plot" Murray Eisenberg <murray@math.umass.edu> - 2012-08-24 00:49 +0000
| From | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| Date | 2012-08-24 00:49 +0000 |
| Subject | Re: Ambiguity of "Plot" |
| Message-ID | <k16j3e$bav$1@smc.vnet.net> |
You don't have correct Mathematica syntax to denote functions. Did you look at the many examples provided in the documentation? or make use of the Classroom Palette, say, to get a template for Plot?
First, you need:
f[\[Alpha]_] := =85
where the argument is enclosed in square brackets rather than parentheses and where you need to indicate that \[Alpha] is a pattern variable by using the underscore character after it.
Second, in the Plot expression, you need again to use square brackets to surround the argument, that is, use f[\[Alpha]] instead of parentheses.
Third, to denote the plot domain, for the second argument to Plot you have to use the list
{ \[Alpha], 0, 1}
like that rather than including the inequality 0 < \[Alpha] < 1
After those ecorrections, of course you need to give a numerical values to the parameters \[Rho] and \[Delta] before having any hope of obtaining any plot whatsoever.
On Aug 23, 2012, at 2:54 AM, JikaiRF@aol.com wrote:
> I have been embarrassed about a function Plot.
> I would like to plot a curve defined as follows:
>
> f(\[Alpha]) = (\[Rho] + \[Delta] - \[Delta] \[Alpha] - Sqrt[\[Delta]\[Rho] \
> \[Alpha] (1 - \[Alpha]) + \[Rho]^2 \[Alpha]])/((\[Rho] + \[Delta]) (1 \
> - \[Alpha])).
> Here, 0 < \[Alpha] < 1.
>
> And I programmed in this way;
> Plot[f(\[Alpha]), { \[Alpha], 0 < \[Alpha] < 1}]
>
> The curve I obtained from Mathematica is monotonously decreasing. AS a result, f(1) =0.
> However, by using l'H=F4pital7 theorem, f(1) = 1/2 is correct.
> In this situation, I would like to obtain an accurate curve.
---
Murray Eisenberg
murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web