       Re: boolean variable with contours

• To: mathgroup at smc.vnet.net
• Subject: [mg110697] Re: boolean variable with contours
• From: Leonid Shifrin <lshifr at gmail.com>
• Date: Fri, 2 Jul 2010 07:27:06 -0400 (EDT)

```Hi Maria,

First, your <pi> in <i==pi/12> must be <Pi>, I guess. Then, you list several
functions separated by a comma, and ContourPlot does not understand. This
works, for instance:

ContourPlot[
2*R3*Sin[ArcCos[Re[x/R3]]]*e3 +
2*R2/Cos[i]*Sin[ArcCos[Re[x/2.92]]]*(e2 - e3) +
2*R1/Cos[i]*Sin[ArcCos[Re[x/R1]]]*(e1 - e2), {x, -2, 2}, {y, -20,
20}]

What did you mean by separating functions with a comma - what did you try to
achieve? Knowing this it would be easier to help.

Regards,
Leonid

On Thu, Jul 1, 2010 at 11:54 PM, maria giovanna dainotti <

> Dear Math Group,
> I have the following problem when I do a contourplot I can't use
> the boolean variabile.  This is the function for which I would like
> to have the contours
>
> R1==1.029
> R2==2.92
> R3=
> e1==300
> e2==1
> e3==100
> i==pi/12
>
>  ContourPlot[2*R3*Sin[ArcCos[Re[x/R3]]]*e3+2*R2/Cos[i]*Sin[ArcCos[Re[x/2.=
92]]]*(e2-e3)+2*R1/Cos[i]*Sin[ArcCos[Re[x/R1]]]*(e1-e2),(2*R3*Sin[ArcCos[Re=
[x/R3]]]*e3+2*R2/Cos[i]*Sin[ArcCos[Re[x/R2]]]*(e2-e3))*(Boole[-R2<x<-R1]+Bo=
ole[R2>x>R1]),2*R3*Sin[ArcCos[Re[x/R3]]]*e3*(Boole[x<-R2]+Boole[x>R2])+R3*C=
os[ArcSin[y/R3]],{x,-2,2
> },{y,-20,20}]
>
>
> Thanks a lot for your help
> Maria
>

```

• Prev by Date: Re: Simple String question
• Next by Date: Re: Sum of terms --> list
• Previous by thread: Re: boolean variable with contours
• Next by thread: Re: boolean variable with contours