Skip to content

Instantly share code, notes, and snippets.

@onionmk2 onionmk2/
Created Aug 13, 2017

What would you like to do?
# 1.1(1)を解く
import numpy as np
from sympy import *
# real = trueがないと死ぬ。
x = symbols("x", real=True)
f = np.absolute(x + 2) - 4
roots = solve(f, x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.