Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6536
| From | Costa Bravo <q13a27tt@aol.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: How to force integers |
| Date | 2011-11-19 11:52 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <ja85am$ijh$1@smc.vnet.net> (permalink) |
| References | <ja5kgb$7qa$1@smc.vnet.net> |
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
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
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
csiph-web