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


Groups > comp.soft-sys.math.mathematica > #6543

Integrating a rotated function inbetween two circles

From "Dr. Peter Klamser" <klamser@googlemail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Integrating a rotated function inbetween two circles
Date 2011-11-19 11:56 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <ja85hc$im1$1@smc.vnet.net> (permalink)
References <ja5f65$6a7$1@smc.vnet.net> <201111181249.HAA07910@smc.vnet.net>

Show all headers | View raw


Hi,

when you execute the following code you get a rotated parabolic function 
a x^2 rotated around the centre of coordinate system:

becher =.
becher[a_, x_] = a x^2;
rot = RotationTransform[(\[Theta]), {0, 0}] // FullSimplify
bechergedreht =.
bechergedreht[\[Theta]_, a_, r_, x_] = rot[{(x), becher[a, x - r]}]
x$fuer$r[a_, b_,
r_] = (x /. Solve[becher[a, x - r]^2 + x^2 == (r + b)^2, x])[[2]] //
Simplify;
ParametricPlot[
Table[bechergedreht[2 \[Pi] i/10, 1, 3, x], {i, 0, 9}], {x, 3,
x$fuer$r[1, 2, 3]}, PlotRange -> 1.01 {{-5, 5}, {-5, 5}},
Epilog -> {Circle[{0, 0}, 3], Circle[{0, 0}, 5]}]
{xstrich, ystrich} = bechergedreht[\[Theta], a, r, x];
loesungx = x /. Solve[xstrich == xs, x] // TrigFactor;
bechergedreht$xstrich[\[Theta]_, a_, r_, xs_] =
ystrich /. x -> loesungx // FullSimplify;
Print["Mit n wird für Table die Anzahl der Schritte festgelegt."]
Print["Mit n = 4 bekomme ich das erwartete Ergebnis."]
n = 4;
Plot[Table[
bechergedreht$xstrich[2 \[Pi] i/10, 1, 3, x], {i, 1, n}], {x, -4,
4}, AspectRatio -> 1, Epilog -> {Circle[{0, 0}, 3]},
PlotRange -> 1.01 {{-5, 5}, {-5, 5}}]
Print["Mit n = 5 bekomme ich keinen Plot mehr."]
n = 5;
Plot[Table[
bechergedreht$xstrich[2 \[Pi] i/10, 1, 3, x], {i, 1, n}], {x, -4,
4}, AspectRatio -> 1, Epilog -> {Circle[{0, 0}, 3]},
PlotRange -> 1.01 {{-5, 5}, {-5, 5}}]

If you fill water into the cups on the right side you get a water wheel.

How do I manage the rotated function most efficiently, that is the well 
known pair of functions regrading to the rotation vector?

As you see I developed the function bechergedreht$xstrich, solving the 
x´(x) part of the rotating function to x(x´) and inserting this into the 
y´(x) part of the rotation vector. But this does not handle to well.

How can I calculate the surface oft the cups on the right side?

Kind regards

Peter

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

x and y plot finding maximum florian <flott32@hotmail.com> - 2011-11-18 11:22 +0000
  Re: x and y plot finding maximum "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-11-18 12:50 +0000
  Re: x and y plot finding maximum "Dr. Wolfgang Hintze" <weh@snafu.de> - 2011-11-18 12:53 +0000
  Integrating a rotated function inbetween two circles "Dr. Peter Klamser" <klamser@googlemail.com> - 2011-11-19 11:56 +0000

csiph-web