Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: use a function within a new function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg70941] Re: use a function within a new function
  • From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 2 Nov 2006 06:47:40 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <ei9nuo$1ps$1@smc.vnet.net>

Hi,

you can't because the region you are ploting is in 
the first
case {{t, 0, 9}, {a, 0, 9}}
in the second one  {t, 0, 720}, {a, 0, 720}
and you see the difference of a magnification 
factor 80
while you will have no problems with an ant, when 
you magnify
the ant by a factor of 80 it *will* look 
different.

Regards
  Jens


<aitor69gonzalez at gmail.com> schrieb im Newsbeitrag 
news:ei9nuo$1ps$1 at smc.vnet.net...
| Hello,
|
| I have a function like:
| phi(a,t) = sin(2*pi*(t-a)/T' + a/T)
| where "T" is itself a function of "a" like here:
| ####
| Plot3D[Sin[2*\[Pi]*((t - a)/3 + a/(a + 1))], {t, 
0, 9}, {a, 0, 9},
|    AxesLabel -> {"t", "a", "ex"}, Lighting -> 
False,
|    ViewPoint -> {0, 0, 100}, PlotPoints -> 40, 
Mesh -> False];
| ####
| Therefore, I would like to define T separately. 
Something like here:
| ####
| T[a_] = a + 1;
| phi[a_, t_] = Sin[2*\[Pi]*((t - a)/3 + a/T[a])];
| Plot3D[phi[a, t], {t, 0, 720}, {a, 0, 720}, 
AxesLabel -> {"t", "a",
| "ex"},
|  Lighting -> False, ViewPoint -> {0, 0, 100}, 
PlotPoints -> 40,
|  Mesh -> False]
| ####
| But as you can see, both plots do not look like 
the same. How can I
| define a "T" as a function of a separately?
| Thank you in advance.
|
| Aitor
| 



  • Prev by Date: Re: message question
  • Next by Date: Clarification re. Curiosity concerning transformation rules for List
  • Previous by thread: Re: use a function within a new function
  • Next by thread: Re: use a function within a new function