Skip to content

Instantly share code, notes, and snippets.

View aktech's full-sized avatar
🏠

Amit Kumar aktech

🏠
View GitHub Profile
@aktech
aktech / solver maxima.md
Last active August 29, 2015 14:15
solver1.pdf Maxima

Note: This file is a machine translation of solver1.pdf.

Acknowlegments: Many persons and institutions contributed considerably to the success of this work. I would like to express my thanks to:

  • Richard Petti and Jeffrey P. Golden of Macsyma, Inc. (USA) for their interest in this work, for supplying Macsyma licenses and the modifcation of the LINSOLVE function,
  • The Center for Microelectronics of the University of Kaiserslautern, in particular Dr. Peter Conradi and Uwe Wassenmüller, for the support of the project,
  • Clemens, Frank and Michael for the first-class WG life and particularly Michael for the
@aktech
aktech / Solve by LambertW.md
Created March 4, 2015 19:30
Solve by LambertW

This can be solved using properties of LambertW Function.

x + exp(x**2) = 0
1 = -x*exp(-x**2)
squarring both sides
1 = (x**2)*(exp(-2*x**2))
Multiply by -2 on both sides
-2 = (-2*x**2)*(exp(-2*x**2))
Taking LambertW on both sides:
LambertW(-2) = LambertW((-2*x**2)*(exp(-2*x**2)))
@aktech
aktech / NotImplementedErrors Matrices
Created June 5, 2015 08:15
NotImplementedErrors Matrices
amit@amit-UDell:~/Desktop/myrepo/sympy/sympy/matrices$ grep -r -H "NotImplementedError"
Binary file expressions/blockmatrix.pyc matches
Binary file expressions/determinant.pyc matches
expressions/tests/test_matrix_exprs.py: raises(NotImplementedError, lambda: 2/B)
expressions/matmul.py: raise NotImplementedError("Can't simplify any further")
expressions/matexpr.py: raise NotImplementedError
expressions/matexpr.py: raise NotImplementedError("Matrix Power not defined")
expressions/matexpr.py: raise NotImplementedError()
expressions/matexpr.py: raise NotImplementedError(
expressions/matpow.py: raise NotImplementedError(("(%d, %d) entry" % (int(i), int(j)))
@aktech
aktech / FiniteSet dpr.md
Created June 22, 2015 17:44
FiniteSet deprec

We are planning to deprecate the current behavior of FiniteSet , with a flag which is default set to True for the new behavior. to get the old behavior one has to set it to False. See this to know the difference between behaviors.

@aktech
aktech / Minutes of the Meeting.md
Last active August 29, 2015 14:24
Minutes of the Meeting 1 July

Minutes of the Meeting

1st July 2015

Priorities are mentioned with --> [ ]

  • FiniteSet PR sympy/sympy#9540 (Fix test_partition.py Error) [1]
  • Fix invert_real (Abs(x) - n) [2] (1 week)
  • not_empty_in ({n} .intersection(-oo, 0)) [2] (1 week)

Brief: return invert with the information of the set in which the invert is valid:

@aktech
aktech / debug.py
Last active August 29, 2015 14:24
debug.py
from sympy import *
print atan2(0, sqrt(sqrt(-I)*(1 + I)))
# from sympy import *
# from sympy.abc import n
# f = -I*(I*(2*pi*n - pi/4) + log(sqrt(sqrt(2)*sqrt(-I)/2 + sqrt(2)*I*sqrt(-I)/2)))
@aktech
aktech / Solveset Design.md
Created August 2, 2015 16:20
Solveset Design

Solving as a Set Transformation

Since now ConditionSet has been introduced, the solving of equations can be seen as set transformation. We can do the following things to solve equations:

  • Apply Various Set Transformations on the given Set.
  • Define a Metric of the usability or define a notion of better solution over others.
  • Different Transformation would be the nodes of the tree.
@aktech
aktech / GSoCReport.md
Last active August 29, 2015 14:27
GSoC 2015 Report Amit Kumar : Solvers
<div class="disqus">
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'iaktech'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
@aktech
aktech / Ubuntu virtualenv issue.md
Created June 7, 2016 10:53
Ubuntu virtualenv issue

Unfortunately, 14.04 shipped with a broken pyvenv. According to this launchpad thread the issue will be resolved in the upcoming 14.04-1

Using this method you can install a Pyvenv environment without pip and then manually install pip after the fact.

pyvenv-3.4 --without-pip myvenv
source ./myvenv/bin/activate
wget https://pypi.python.org/packages/source/s/setuptools/setuptools-3.4.4.tar.gz
tar -vzxf setuptools-3.4.4.tar.gz
cd setuptools-3.4.4