Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #66175
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'attribute': 0.07; "subject:' ": 0.07; 'exp': 0.09; 'function,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:skip:a 10': 0.09; 'jan': 0.12; 'csv': 0.16; 'dep': 0.16; 'numpy': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:object': 0.16; 'wrote:': 0.18; 'import': 0.22; 'header:User-Agent:1': 0.23; 'code:': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; "skip:' 10": 0.31; 'file': 0.32; '(most': 0.33; 'skip:_ 10': 0.34; 'skip:" 50': 0.36; 'should': 0.36; 'list.': 0.37; 'to:addr :python-list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'received:org': 0.40; 'received:173': 0.61; 'email addr:gmail.com': 0.63; 'skip:n 10': 0.64; 'subject:skip:A 10': 0.78; 'received:fios.verizon.net': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Terry Reedy <tjreedy@udel.edu> |
| Subject | Re: AttributeError: 'Or' object has no attribute 'as_independent' |
| Date | Thu, 13 Feb 2014 07:31:17 -0500 |
| References | <512a3958-7f8e-4af0-a0d6-1c4dec4b1955@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | pool-173-75-254-207.phlapa.fios.verizon.net |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
| In-Reply-To | <512a3958-7f8e-4af0-a0d6-1c4dec4b1955@googlegroups.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.6839.1392294711.18130.python-list@python.org> (permalink) |
| Lines | 45 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1392294711 news.xs4all.nl 2858 [2001:888:2000:d::a6]:50272 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:66175 |
Show key headers only | View raw
On 2/13/2014 4:03 AM, wilsonmonde@gmail.com wrote:
> Traceback (most recent call last):
> File "testcsv.py", line 17, in <module>
> print(sy.solve([x^2+x+1-t, x^3+x^2-t], x))
> File "C:\Python27\lib\site-packages\sympy\solvers\solvers.py", line 902, in so
> lve
> solution = _solve_system(f, symbols, **flags)
> File "C:\Python27\lib\site-packages\sympy\solvers\solvers.py", line 1434, in _
> solve_system
> i, d = _invert(g, *symbols)
> File "C:\Python27\lib\site-packages\sympy\solvers\solvers.py", line 2422, in _
> invert
> indep, dep = lhs.as_independent(*symbols)
> AttributeError: 'Or' object has no attribute 'as_independent'
You should report this on the sympy list. It is mirrored on
news.gmane.org as gmane,comp.python.sympy.
> Code:
>
> import csv as csv
> import os
> import numpy as np
> import sympy as sy
> #from sympy import solve, Poly, Eq, Function, exp
> from sympy import *
> from numpy import *
> from numpy.linalg import *
> from sympy.polys.polyfuncs import interpolate
> from sympy import Function, dsolve, Eq, Derivative, sin, cos
> from sympy.abc import x
>
> f = sy.Function('f')
> x = sy.Symbol("x")
> t = sy.Symbol("t")
>
> print(sy.solve([x^2+x+1-t, x^3+x^2-t], x))
> print(sy.solve((x^2+x+1-t, x^3+x^2-t), x))
>
>
--
Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
AttributeError: 'Or' object has no attribute 'as_independent' wilsonmonde@gmail.com - 2014-02-13 01:03 -0800 Re: AttributeError: 'Or' object has no attribute 'as_independent' Terry Reedy <tjreedy@udel.edu> - 2014-02-13 07:31 -0500
csiph-web