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


Groups > comp.soft-sys.math.mathematica > #6518 > unrolled thread

How to force integers

Started byArtur <grafix@csl.pl>
First post2011-11-18 12:53 +0000
Last post2011-11-19 11:52 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  How to force integers Artur <grafix@csl.pl> - 2011-11-18 12:53 +0000
    Re: How to force integers Costa Bravo <q13a27tt@aol.com> - 2011-11-19 11:52 +0000

#6518 — How to force integers

FromArtur <grafix@csl.pl>
Date2011-11-18 12:53 +0000
SubjectHow to force integers
Message-ID<ja5kgb$7qa$1@smc.vnet.net>
Table[(7/10 - (6/5)*(-1)^
       n*(1/2)*(f^(15*(2 n - 1)) - (1/f)^(15 (2 n - 1))) + (1/
        20)*(f^(30 (2 n - 1)) + (1/f)^(30 (2 n - 1)))) /.
   f -> GoldenRatio, {n, 1, 10}]

Is possible to force integers without use Round or Floor of numeric values?

Best wishes
Artur
P.S. If you have any idea please together to group send also copy to me 
privately because I have daily import of mesages from mathgroup.

[toc] | [next] | [standalone]


#6536

FromCosta Bravo <q13a27tt@aol.com>
Date2011-11-19 11:52 +0000
Message-ID<ja85am$ijh$1@smc.vnet.net>
In reply to#6518
  Artur wrote:
> Table[(7/10 - (6/5)*(-1)^
>         n*(1/2)*(f^(15*(2 n - 1)) - (1/f)^(15 (2 n - 1))) + (1/
>          20)*(f^(30 (2 n - 1)) + (1/f)^(30 (2 n - 1)))) /.
>     f ->  GoldenRatio, {n, 1, 10}]
>
> Is possible to force integers without use Round or Floor of numeric values?

f1 = 1/(1/2 (Sqrt[5] + 1)) // FullSimplify
Table[(7/10 - (6/5)*(-1)^
        n*(1/2)*(f^(15*(2 n - 1)) - (1/f)^(15 (2 n - 1))) + (1/
         20)*(f^(30 (2 n - 1)) + (1/f)^(30 (2 n - 1)))) /. {1/f -> f1,
     f -> 1/2 (Sqrt[5] + 1), n -> i} // Expand, {i, 1, 100}]

Out = {93844, 322001299796379844, .......      , 22655....793844}

-- 
  Costa

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web