Quantcast








     

How can I solve equations in Python?

stackoverflow.com - 2012-05-08 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.

Undergraduate Lagranges multipliers

thestudentroom.co.uk - 2013-06-02 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, (x-5y)=0 I am having difficulty solving the simultaneous equations. Can I ask if I have the equations set out cor...

Undergraduate How do you use eigenvectors to solve a system of homogeneous equations?

thestudentroom.co.uk - 2013-05-15 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?...

SolveDiffEq 3.6 - Solve differential equations. (Free)

macupdate.com - 2013-03-03 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 Runge-Kutta 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), . . .

Algorithm for linear equations with more solutions

stackoverflow.com - 2013-03-22 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...

Sixth form Intersection of 2 vector equations

thestudentroom.co.uk - 2013-06-01 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...

Mathletes: Students solve 375K algebra equations in 4 days with iOS app

geekwire.com - 2013-06-07 22:22:38 - Similar - Report/Block

Students across Washington did some serious algebra work this week — and I mean serious like 400,000 problems in four days kind of work. As part of the Washington State Algebra Challenge , K-12 students used an iteration of a learning app called DragonBox to try and solve 250,000 equations in just one week. They did that and much more, a...

Sixth form Simultaneous Equations!?

thestudentroom.co.uk - 2013-02-26 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^2-x^2 = 11" thanks :)...

Ubuntu 12.04 install NetSNMP Python Bindings

stackoverflow.com - 2013-03-18 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 net-snmp-5.7.1 source tar, and did the following things: ./configure -with-python-modules apt-get install libperl-dev But when I used the command ''make'' to compile the Net-SNMP source. Facing the error like below: T...

Global name in Python

stackoverflow.com - 2013-05-02 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...

SymPy - Arbitrary number of Symbols

stackoverflow.com - 2012-02-29 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...

Sixth form C4 differential equations- help!

thestudentroom.co.uk - 2013-04-09 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...

evolveStar Join

Sixth form Parametric Equations Questions

thestudentroom.co.uk - 2013-03-06 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...

Speed - embedding python in c++ or extending python with c++

stackoverflow.com - 2012-03-17 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...

What happened to Py_FlushLine in Python 3.3?

stackoverflow.com - 2013-04-12 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...

[Discuss] Python 2 vs Python 3

unknowncheats.me - 2013-05-28 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.

DreamPie doesn't work with Python 3.2

stackoverflow.com - 2012-04-27 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...

Vim python#complete doesn't work for "from .module import" statement

stackoverflow.com - 2012-05-07 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?...

Trouble installing & starting Python from command line in Windows 7

stackoverflow.com - 2012-03-13 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...

Error: Command failed with rc=65536 python and mod_wsgi

stackoverflow.com - 2012-07-04 18:28:24 - Similar - Report/Block

i'm having this problem: i'm runing pythonbrew to get python2.7, and so i re-compiled 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 --with-python=/h...

Webscraping using Selenium and Python: Capture JSON body

stackoverflow.com - 2013-03-24 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 JSON-formatted data that's retured, however this article suggests getting the JSON body out isn't...

No module named MySQLdb

stackoverflow.com - 2009-01-18 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.

testing python for threading

stackoverflow.com - 2012-06-19 01:47:13 - Similar - Report/Block

How do you test if the version of python that comes pre-installed 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:xnu-1699.24.23~1/RELEASE_X86_64 x86_64 i386 [16:31 8] which pyth...

Dpkg Python module?

stackoverflow.com - 2012-07-30 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 python-deb but it appears to be defunct. python-apt might seem like a potential solution, but A...

Sixth form C2 Logs help!!!

thestudentroom.co.uk - 2013-04-23 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 (x-2) = 2) I also don't understand how if a = log 2 and is b = log 3, b-a + 2 equals log 150 I am quite confused :s...

Python / Django Python Developer

monster.co.uk - 2013-04-19 19:00:03 - Similar - Report/Block

London-Central london, Python Developer / Python Django Developer Central London 45k Python Developer - Our award winning client requires a superb Python Developer to join an amazing team. As an experienced Python Developer you will be working on huge B2B and B2C, high availability, high user python products utilising a range of technolog...

Read MP3 in Python 3 on Linux

stackoverflow.com - 2012-02-27 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 fully-fledged game dev library. I'm a...

Export AsciiMathML equations to Excel Format

stackoverflow.com - 2012-04-05 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...

Sixth form Finding x without resorting to quadratic equations (equilibrium constants)

thestudentroom.co.uk - 2013-02-26 13:14:36 - Similar - Report/Block

How can we solve for x without turning this expression into a quadratic equation, please?...

Python being auto-aliased in Mac OS X Lion

stackoverflow.com - 2013-03-15 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...

Other/Not applicable Simple differential equation

thestudentroom.co.uk - 2013-02-20 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...

Matrix of Differential Operators in Python module Sympy

stackoverflow.com - 2013-03-17 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...

Solving Quadratic Formula

stackoverflow.com - 2013-05-02 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**2-4*a*c))/2*a print "x = %s" %x print "or" y = ((-1)* b - math.sqrt(b**2-4*a*c))/2*a print "x =...

Install PIL in Ubuntu 12.04 Python 2.7 and Python 3.2

stackoverflow.com - 2013-02-21 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...

yum yum doesn’t match version of Python 终极解决方案

linuxde.net - 2013-04-10 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...

Red Hat 5/CentOS 5系统中更新python版本

linuxde.net - 2013-02-28 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 n-3.3.0.tar.bz2 tar -jxvf Python-3.3.0.tar.bz2 cd Python-3.3.0 ./configure make && make install 2,更新链接 mv /usr/bin/python /usr/bin/python-2.4.3.bak ln -s /usr/local/bin/python3.3 /u...

Обновление Python - Python

cyberforum.ru - 2013-04-09 17:04:16 - Similar - Report/Block

Сразу скажу.Я новичок как в Linux так и в программирование вообще и в Python в частности. Начал читать Лутца. Он пишет что для новичков лучше python 3 и выше. Ок. Установил из репозитория 3 версию. Сейчас , как я понял, в системе две версии. Как выбрать по умолчанию 3? Как правильно сделать апдейт что бы была только одна версия? Терминал...

延伸阅读:国外变形本同时运行三个系统_上网本起死回生?Android成主流系统

zol.com.cn - 2013-05-27 06:40:00 - Similar - Report/Block

2013-05-27 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...

Python le plus long capturé en Floride

tuxboard.com - 2013-05-21 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...

Solve error - Maple

cyberforum.ru - 2013-05-02 07:56:47 - Similar - Report/Block

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




dialogShowMessage!

Fill out the form you see below. Registration is free, fast and simple.
If you are already registered, sign in page login.


Web Site :
Required Field
First Name :
Required Field
Last Name :
Required Field
Email :
Required Field
Sex :
Required Field

evolveStar.com is free for ever !


evolveStar.com provides a search engine that allows you to gather information to write their own blog.


evolveStar.com enhances the sources displaying the logo of the site.


If you want to remove your site or you believe a site listed infringes copyright, please report it to: info@evolvestar.com


Specifies the subject copyright violation and the url of the page


evolveStar.com respecting the law DMCA (Digital Millennium Copyright Act) will immediately remove whatever its merits.


Next will be effectual and relevant checks.







Who We Are Advertising Contacts Help & FAQ

© Copyright 2010-2014 Fabrizio Fichera. All rights reserved.