Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.2K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

Is it possible to plot a piece-wise function with variable bounds?

Posted 11 years ago

Specifically I am trying to plot the following:

![Equation][1]

As v_r vs. l, sampling d in digit intervals from d=5 to d=15. Please forgive the specific nature of this question but I am having trouble finding a solution. The domain of l only need be 0 to pi/2.

For the sake of context here is the rest of my visualisation:

Plot[{Evaluate[
   Table[Sin[l]*(2500/Sqrt[100 + d^2 - 20*d*Cos[l]] - 250), {d, 0, 
     5}]], Evaluate[
   Table[Sin[l]*(2500/Sqrt[100 + d^2 - 20*d*Cos[l]] - 250), {d, 15, 
     20}]]}, {l, 0, \[Pi]/2}, AxesLabel -> {l, v}]

![Graph][2]

I have tried using a combination of the Table and Piecewise functions, but to no avail. I would greatly appreciate any help.

Cheers.

POSTED BY: Alec Thomson
2 Replies

Sometimes an alternative to Piecewise is a construction something like

f[x_]:=f1[x] Boole[condition1]+f2[x] Boole[condition2]

POSTED BY: S M Blinder
Posted 11 years ago
POSTED BY: Kuba Podkalicki
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard