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


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

Re: How to force integers

From Bob Hanlon <hanlonr357@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How to force integers
Date 2011-11-19 11:56 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <ja85ib$imd$1@smc.vnet.net> (permalink)
References <201111181250.HAA07975@smc.vnet.net>

Show all headers | View raw


data = 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}];

data // FunctionExpand // ExpandAll // Simplify


Bob Hanlon


On Fri, Nov 18, 2011 at 7:50 AM, Artur <grafix@csl.pl> 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?
>
> 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.
>

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


Thread

Re: How to force integers Bob Hanlon <hanlonr357@gmail.com> - 2011-11-19 11:56 +0000

csiph-web