Re: Tabulating expressions dependent on two variables

• To: mathgroup at smc.vnet.net
• Subject: [mg112412] Re: Tabulating expressions dependent on two variables
• From: Ray Koopman <koopman at sfu.ca>
• Date: Wed, 15 Sep 2010 04:35:57 -0400 (EDT)
• References: <i6ned2\$g8l\$1@smc.vnet.net>

```On Sep 14, 2:14 am, Leslaw Bieniasz <nbbie... at cyf-kr.edu.pl> wrote:
> Hi,
>
> How should one modify the following code, in order to accurately tabulate
> a function f[x,y] of two variables, instead of the function f[y] of one
> variable? The values of x and y should be all combinations of the values
> of y indicated below.
>
> Leslaw
>
> -----------------
>
> In[1]:= Table[{N[y],SetPrecision[f[y], 70],Precision[f[y]]},
>    {y,  {
>      1/10^19, 2/10^19, 5/10^19,
>      1/10^18, 2/10^18, 5/10^18,
>      1/10^17, 2/10^17, 5/10^17,
>      1/10^16, 2/10^16, 5/10^16,
>      1/10^15, 2/10^15, 5/10^15,
>      1/10^14, 2/10^14, 5/10^14,
>      1/10^13, 2/10^13, 5/10^13,
>      1/10^12, 2/10^12, 5/10^12,
>      1/10^11, 2/10^11, 5/10^11,
>      1/10^10, 2/10^10, 5/10^10,
>      1/10^9,  2/10^9,    5/10^9,
>      1/10^8,  2/10^8,    5/10^8,
>      1/10^7,  2/10^7,    5/10^7,
>      1/10^6,  2/10^6,    5/10^6,
>      1/10^5,  2/10^5,    5/10^5,
>      1/10^4,  2/10^4,    5/10^4,
>      1/10^3,  2/10^3,    5/10^3,
>      1/10^2,  2/10^2,    5/10^2,
>      1/10^1,  2/10^1,    5/10^1,
>      10^0,        2 10^0,    5 10^0,
>      10^1,        2 10^1,    5 10^1,
>      10^2,        2 10^2,    5 10^2,
>      10^3,        2 10^3,    5 10^3,
>      10^4,        2 10^4,    5 10^4,
>      10^5,        2 10^5,    5 10^5,
>      10^6,        2 10^6,    5 10^6,
>      10^7,        2 10^7,    5 10^7,
>      10^8,        2 10^8,    5 10^8,
>      10^9,        2 10^9,    5 10^9,
>      10^10,      2 10^10, 5 10^10,
>      10^11,      2 10^11, 5 10^11,
>      10^12,      2 10^12, 5 10^12,
>      10^13,      2 10^13, 5 10^13,
>      10^14,      2 10^14, 5 10^14,
>      10^15,      2 10^15, 5 10^15
>
>      }}]
> TableForm[%]

r = Flatten@Table[{1,2,5}*10^m,{m,-19,15}];
Table[{x,y,f[x,y]},{x,r},{y,r}]

```

• Prev by Date: Re: Extracting some elements, members of another list
• Next by Date: Re: Extracting some elements, members of another list
• Previous by thread: Re: Tabulating expressions dependent on two variables
• Next by thread: Connecting to Oracle via tnsnames.ora