|
||||||
| Python Discussion forum for Python, a high-level language with simple syntax, but yet powerful. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
python maths post-shortened now. promise! please look
could anyone give me the exact text i'd have to type into the python command line to make python check for integer solutions to:
Code:
n = log[base2]((7^(x)-1)/(2^(x)-1))= log[base2](7^(x)-1) - log[base2](2^(x)-1) what i want is the code i'd have to type into python to order it to look for integer solutions up to, say, n=10000, x=10000. Last edited by Jaan; 07-07-2009 at 08:03 PM.. |
|
|||
|
Re: python maths post-shortened now. promise! please look
could anyone at least refer me to a guide which, if read thoroughly, would give me the answer i need?
none i have come across seem to offer answers about brute forcing...but someone on another forum claimed it was possible using python. they actually did it to an equation very similar to the one in my OP. but they ran off from the forum before i could ask them what could they typed into the command line...so i need some help from here. |
|
||||
|
Re: python maths post-shortened now. promise! please look
I don't know Python so I don't know how the code would go but wouldn't you just type a few lines of code that will allow the end user to input a number which will be stored in the variable x. Then run that line of code with the value of x and then the answer would be stored in n.
Just print the value of n then?
__________________
jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Python Collection | reachpradeep | Python | 1 | 03-03-2007 03:50 PM |
| How to make Dumplings | ahsan16 | The Lounge | 2 | 01-11-2007 11:55 PM |
All times are GMT -5. The time now is 09:26 AM.
Amrosama.cc
Arekbulski.cc
Debtboy.cc
Guest.cc
Jaan.cc
James.cc
Mathx.cc
Tsz.cc
Vswe.cc