Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14215 > unrolled thread

Re: used by LogLogPlot?

Started byBill Rowe <readnews@sbcglobal.net>
First post2013-04-17 06:30 +0000
Last post2013-04-17 06:30 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: used by LogLogPlot? Bill Rowe <readnews@sbcglobal.net> - 2013-04-17 06:30 +0000

#14215 — Re: used by LogLogPlot?

FromBill Rowe <readnews@sbcglobal.net>
Date2013-04-17 06:30 +0000
SubjectRe: used by LogLogPlot?
Message-ID<kklfip$7q5$1@smc.vnet.net>
On 4/16/13 at 12:36 AM, fishe053@cougars.csusm.edu wrote:

>I'm confused too.  I'm trying to plot this code below via
>mathematica however I can't get the plot to come out correctly.

>R = 10;
>L = 0.01;
>C = 2.533e-8;
>f = logspace(3,5,2000);
>w = 2*pi*f;
>H = R./(R+j*w*L + 1./(j*w*C ));
>semilogx(f,20*log10(abs(H)))

>I've tried using LogLinearPlot to replicate it in mathematica but
>when I try I get something completely different!  Not sure why.

Simply put you must use correct syntax.

Do not get in the habit of using a single upper case letter as a
variable. Too many of these have built-in meaning for
Mathematica and using one that has built-in meaning generally
results in undesired behavior. A short (but not complete) list
of upper case letters with built-in meaning include C, D, E, I
and N

All built-in Mathematica functions/commands/symbols start with
an upper case letter. That is 3.1459... is Pi not pi, the
logarithm of x base 10, is Log[10,x] not log10(x)

A consequence of this is anything that begins with a lower case
letter is an undefined symbol that you have to define. That is j
is not the Sqrt[-1] unless you specifically define it to be.

The characters "(" and ")" are used only to group things and
cannot be used to mark function arguments. That is

log10(x) is seen by Mathematica as the product of symbols log10
and x.



[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web