

stackoverflow.com
 20120508 15:49:35
 Similar
 Report/Block
Let's say I have an equation: 2x + 6 = 12 With algebra we can see that x = 3 . How can I make a program in Python that can solve for ? I'm new to programming, and I looked at eval() exec() but I can't figure out how to make them do what I want. I do not want to use external libraries (e.g. SAGE), I want to do this in just plain Python.



thestudentroom.co.uk
 20130602 11:37:05
 Similar
 Report/Block
I have to find the volume of a cube which has a surface area 270 and the second constraint is that one of the sides is 5 times greater than another. I set down the equations as f(x,y,z)=xyz g(x,y,z, (xy+yz+xz)=135 and h(x,y,z, (x5y)=0 I am having difficulty solving the simultaneous equations. Can I ask if I have the equations set out cor...



macupdate.com
 20130303 23:11:53
 Similar
 Report/Block
SolveDiffEq is a standalone application which allows you to numerically solve differential equations and evaluate definite integrals of your choosing. Using the RungeKutta method, SolveDiffEq can solve any number of coupled differential equations of the form dx(0)/dt = f(0)(t, x(0), x(1), . . . ) dx(1)/dt = f(1)(t, x(0), x(1), . . .




thestudentroom.co.uk
 20130515 11:48:01
 Similar
 Report/Block
If you have a set of homegenous linear equations in three variables how do you solve them by use of eigenvectors? I know how to solve them using the inverse coefficient matrix, but I can't quite figure out how to do it with eigenvectors. Can anyone point me in the right direction?...



stackoverflow.com
 20130322 12:32:07
 Similar
 Report/Block
Can someone help me out with algorithm for solving linear equations in modular arithmetic (!). I need only the "smallest" solution. Smallest means lexicographically first. Let's have this system: 3x1+2x2=3 4x1+3x2+1x3+2x4=4 Number next to x is index. Matrix for this system where we use modulo 5 (0<=x<=p where p is our modulo) is 3 2 0 0 0...



thestudentroom.co.uk
 20130601 03:27:31
 Similar
 Report/Block
Is Intersection of 2 3D vector equations covered in A level Maths (for any board). I cant find any examples in the book. intesection of 2 2D vector equations are covered but was unsure of how the problem would be solved they were 3D. Ive added a made up question, please let me know if my approach is correct. the 2 lines are r=(4 2 3) + La...



thestudentroom.co.uk
 20130226 22:47:52
 Similar
 Report/Block
could someone give me a bit of help with this? I keep going wrong :( Solve the simultaneous equations : "x+y = 2" and "4y^2x^2 = 11" thanks :)...




stackoverflow.com
 20130318 09:40:31
 Similar
 Report/Block
I want to install NetSNMP Python Bindings in Ubuntu 12.04 LTS system. But I got some in install progress. First, I got the netsnmp5.7.1 source tar, and did the following things: ./configure withpythonmodules aptget install libperldev But when I used the command ''make'' to compile the NetSNMP source. Facing the error like below: T...



thestudentroom.co.uk
 20130409 02:36:39
 Similar
 Report/Block
I seem to come up against the same problem when finding particular solutions to differential equations. I'm sure I'm missing out/doing something really stupid but I can't for the life of me seem to figure it out. E.g. When trying to solve: given x=20 when t=0 I get the answer instead of the actual answer: Similarly for this question: gi...



stackoverflow.com
 20130502 08:11:03
 Similar
 Report/Block
I want to find out whether two numbers and are the permutations of the same digits. For example 123 and 321 are permutations of the same digits, where as 234 and 123 are not. I have used Python to solve the problem of which I am not an expert. I am using IDLE Python GUI on Windows 7 . The specifications are Python 2.7.3 (default, A...



stackoverflow.com
 20120229 03:52:19
 Similar
 Report/Block
I am coding a function that solves an arbitrary number of simultaneous equations. The number of equations is set by one of the parameters of the function and each equation is built from a number of symbols  as many symbols as there are equations. This means that I can't simply hardcode the equations, or even the symbols needed to put tog...



thestudentroom.co.uk
 20130306 00:11:59
 Similar
 Report/Block
A curve is defined by the parametric equations x=4e^2t y=e^2t  e^2t Show that the Cartesian equation of the curve can be written in the form y= x/k  k/x No idea where to start, please could someone do this step by step so I can solve the other questions. Thanks...




stackoverflow.com
 20120317 02:56:29
 Similar
 Report/Block
I have some big mysql databases with data for calculations and some parts where I need to get data from external websites. I used python to do the whole thing until now, but what shall I say: its not a speedster. Now I'm thinking about mixing Python with C++ using Boost::Python and Python C API. The question I've got now is: what is the b...



stackoverflow.com
 20120507 19:11:32
 Similar
 Report/Block
Current python#complete doesn't support any python script with the following import statement: from . import module from .modulea import abc It will show "from: syntax error..." in vim. Anyone has any clue to solve it?...



stackoverflow.com
 20130412 04:04:00
 Similar
 Report/Block
I'm porting a python C module from 2.7.x over to python 3.3. One of the issues I ran into is that Py_FlushLine isn't defined in the python headers from what I can tell. How should the following code snippet be modified to work in python 3.3? if (Py_FlushLine()) PyErr_Clear(); What's more interesting is that searching the online python d...



unknowncheats.me
 20130528 03:14:37
 Similar
 Report/Block
Do you use Python 2 or Python 3? I've seen mixed opinions on other websites and would like to see what you at UC think? Why do you prefer one over the other? The most common argument I see is Python 3 is not yet supported by some libraries.



thestudentroom.co.uk
 20130226 13:14:36
 Similar
 Report/Block
How can we solve for x without turning this expression into a quadratic equation, please?...



stackoverflow.com
 20120405 11:00:19
 Similar
 Report/Block
I have to export a list of mathematical questions which has AsciiMathML notations to an Excel Sheet and there I want to show the equations properly. My code is written in PHP and I create the Excel file in the server and serve it to download. I found that there are number of libraries which are in javascript to convert AsciiMathMl to imag...




stackoverflow.com
 20130221 12:42:16
 Similar
 Report/Block
I a, using Ubuntu 12.04 server which by default has two versions of Python: 2.7 and 3.2. When I install PIL using the python setup.py install terminal command, the PIL will be installed with Python 2.7. How to install PIL with Python 3.2? Because I'm using Python 3 to write my script. If my Eclipse uses Python 2.7, PIL is successfully im...



stackoverflow.com
 20120427 18:24:00
 Similar
 Report/Block
My favorite Python shell is DreamPie and I want to use it with Python 3.2. I've used the "add interpreter" DreamPie app and added Python 3.2. When opening the Python 3.2 DreamPie instance I get the following error message: Indeed, Python 3.2 isn't mentioned on the DreamPie website as supported, but I still want to know if there's a way t...



stackoverflow.com
 20120313 22:32:29
 Similar
 Report/Block
I'm installing Python for use with SQLMap . I've downloaded and ran the Python 2.7.2 MSI installer , and restarted my computer. According to everything I've read, I should be able to just call python and SQLMap from the DOS command line using python sqlmap.py , but the command line doesnt seem to recognize the python  I get a 'python' i...




stackoverflow.com
 20120704 18:28:24
 Similar
 Report/Block
i'm having this problem: i'm runing pythonbrew to get python2.7, and so i recompiled mod_wsgi to use the 2.7 python. to that end, i followed this tutorial: code.google.com/p/modwsgi/wiki/QuickInst allationGuide which involved downloading the file  there is a tar.gz file i get  and then "configuring it" with ./configure withpython=/h...



stackoverflow.com
 20120329 02:20:09
 Similar
 Report/Block
In a boost python embedding in C++, I have C++ parsing a python (via boostpython) file containing a simple function (termed a "command" in what follows), which in turn calls a C++ method to complete a certain implementation. While these seems ridiculous, we choose to do it for the advantages of logging and the other flexibilities that py...



stackoverflow.com
 20130324 09:06:49
 Similar
 Report/Block
I'm trying to scrape a webpage that has some AJAX running in the background. Using python and Selenium, I've gotten as far as loading the webpage, entering data into a form, clicking submit and waiting. At this point I'm trying to catch the JSONformatted data that's retured, however this article suggests getting the JSON body out isn't...




stackoverflow.com
 20090118 09:13:38
 Similar
 Report/Block
I am using Python version 2.5.4 and install MySQL version 5.0 and Django. Django is working fine with Python, but not Mysql. Can anyone help me to solve this issue. I am using it in Vista.



stackoverflow.com
 20120619 01:47:13
 Similar
 Report/Block
How do you test if the version of python that comes preinstalled on your machine (in this case, Mac Lion) was compiled with support for threading? Here's my info: [16:31 7] uname a Darwin leopard.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu1699.24.23~1/RELEASE_X86_64 x86_64 i386 [16:31 8] which pyth...



stackoverflow.com
 20120730 20:02:31
 Similar
 Report/Block
I'm trying to do some package manipulation (a la dpkg) and while I can just popen subprocess.call I'd rather do things the python way if possible. Unfortunately I've been unable to find a python module to do the trick. I've seen reference to pythondeb but it appears to be defunct. pythonapt might seem like a potential solution, but A...




thestudentroom.co.uk
 20130423 18:48:46
 Similar
 Report/Block
I am really stuck with logs and I just need a general explanation on how to solve equations with logs in (for example, 2log x  log (x2) = 2) I also don't understand how if a = log 2 and is b = log 3, ba + 2 equals log 150 I am quite confused :s...



stackoverflow.com
 20120227 00:52:44
 Similar
 Report/Block
What I want to do is simply mp3 = read_mp3(mp3_filename) audio_left = mp3.audio_channels[0] where audio_left will contain raw PCM audio data. I was looking at Play a Sound with Python , but most of the suggested modules are not ported to Python 3 yet. If possible I'd like to avoid having to install a fullyfledged game dev library. I'm a...



thestudentroom.co.uk
 20130220 22:54:31
 Similar
 Report/Block
Evening, I don't really understand differential equations brilliantly, and even with the help of the internet and 5 different textbooks, I still don't really follow how to do one of the questions. Normally I'd post how far I've got with a question, but I don't know where to start with this one, so all help is appreciated. Solve dy/dx = ay...




stackoverflow.com
 20130315 18:44:34
 Similar
 Report/Block
I have been struggling with setting Python 2.7 to be the default Python on my system. Python 2.6 came with my OS, and I have since installed 2.7 (from source) and have been trying to make that my default version. At one point it was suggested that I try a package manager (MacPorts / Fink / Homebrew) and I did, and I think that may have be...



stackoverflow.com
 20130317 16:50:00
 Similar
 Report/Block
When applying the Ritz Method to solve a curved beam, the internal energy can be represented as: U=w/2*{c}.T*(integral( r*[g].T*[B].T*[F].T*[B]*[g], a, a)*{c} where is the transpose. Disregarding the other terms, the [B] matrix is a matrix of differential operators given in the code below. Trying to solve this using Sympy the following...



stackoverflow.com
 20130502 06:30:57
 Similar
 Report/Block
I'm writing a program to solve quadratic equations using the quadratic formula but it only works when a = 1 but i want it to work when a is more than 1 Here is my code: import math while 1: def solve(a, b, c): x = ((1)* b + math.sqrt(b**24*a*c))/2*a print "x = %s" %x print "or" y = ((1)* b  math.sqrt(b**24*a*c))/2*a print "x =...




thestudentroom.co.uk
 20130513 13:17:35
 Similar
 Report/Block
I wonder if anyone has any tips for the step of balancing halfequations? :(...



linuxde.net
 20130410 04:58:32
 Similar
 Report/Block
今天用yum安装软件的时候出现如下错误: There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named yum Please install a package which provides this module, or verify that the module is installed correctly. It’s possible that the above module doesn’t match the current version of Python...



linuxde.net
 20130228 03:41:15
 Similar
 Report/Block
CentOS Python 的版本默认为2.4.3版本，而我们有很多工作可能需要更高的版本，而去Python 官网的时候发现，Python的版本已经到3.3了，于是下载并升级了下CentOS 中Python的版本。 1，下载并安装 wget http://python.org/ftp/python/3.3.0/Pytho n3.3.0.tar.bz2 tar jxvf Python3.3.0.tar.bz2 cd Python3.3.0 ./configure make && make install 2，更新链接 mv /usr/bin/python /usr/bin/python2.4.3.bak ln s /usr/local/bin/python3.3 /u...




cyberforum.ru
 20130409 17:04:16
 Similar
 Report/Block
Сразу скажу.Я новичок как в Linux так и в программирование вообще и в Python в частности. Начал читать Лутца. Он пишет что для новичков лучше python 3 и выше. Ок. Установил из репозитория 3 версию. Сейчас , как я понял, в системе две версии. Как выбрать по умолчанию 3? Как правильно сделать апдейт что бы была только одна версия? Терминал...



zol.com.cn
 20130527 06:40:00
 Similar
 Report/Block
20130527 06:40:00 作者：尹芹 延伸阅读：三大系统同时运行！超强新品本曝光(图) 联想曾经推出过一款ThinkPad X1 Hybrid笔记本电脑，配备了Windows/Android双操作系统，能实现两 个系统之间的轻松切换。不过一家意大利公司Ekoore推出了一款更加牛的变形笔记本 ——Python S3，其可以同时运行Windows 8、Android和Ubuntu三个操作系统。 Python S3是一款屏幕、键盘可拆分的变形笔记本产品，其标配版已经预装了Android 4.2和Ubuntu 13.4两个操作系统。根据用户的需求可以再加装Windows 8或Windows 8专业版操作系统，加装后，用户可以自行选择运行不同的系统。 Python...



tuxboard.com
 20130521 17:13:00
 Similar
 Report/Block
5,7 mètres et près de 60 kg. Le python (Burmese) le plus grand jamais capturé en Floride. Chargement du Autres liens : Milliers de requins en Floride Plusieurs plages du sud de la Floride sont infestées de... Python Medusa Le plus grand serpent au monde Larry Elgar a acheté ce python il y a 7... Bain de python Et si on mettait notre pyth...




cyberforum.ru
 20130502 07:56:47
 Similar
 Report/Block
Здравствуйте. Не могу разобраться с solve. Код: solve({ro*y*((h(2*n^2+1)^2+2*n(h2*n)) /(2*(4*n^2+1)))(1(h(2*n^2+1)^2+2*n(h 2*n))/(2*(4*n^2+1)))/ro0ro*y*(h^2*n^ 2+h2*n)*(1(h^2*n^2+h2*n)/(2*(4*n^2+ 1)))/(ro0*(2*(4*n^2+1))) = 2*k}, {h}) Решается уравнение относительно h. Вот такая ошибка вылазит: Цитата: Error, (in solve) canno...
