? https://www.deepl.com/ja/translator#ja/en/今まで忘れていました。
? https://www.deepl.com/ja/translator#ja/en/ノーマークでした。
(2023/02/17)
wikipedia
函数と呼ばれる種類の写像の逆写像は、逆函数 (inverse function) と呼ばれる。
Mathematicaで
(2023/07/28追加)
以下の「#」 と「&」 は何でしょうか
In
y1 = (2 x + 5)/(x + 2)
InverseFunction[y1]
y2 = InverseFunction[(2 # + 5)/( # + 2) &]
Plot[{y1, (5 - 2 x)/(-2 + x)}, {x, -4, 4}]
Out
(5 + 2 x)/(2 + x)
InverseFunction[(5 + 2 x)/(2 + x)]
(5 - 2 #1)/(-2 + #1) &
wolframで
InverseFunction — 記号逆関数
例 y=x^2の逆関数の計算のため、InverseFunctionを使いました。
sympyで
????? (2023/05/17)
??? solveはだめで、solveset にしなさい。????
https://docs.sympy.org/latest/modules/solvers/solveset.html
from sympy import *
x, y = symbols('x y')
def myFinv(f):
return (solve(Eq(y, f), x)[0]).subs({y:x}).expand()
f=sqrt(x) + 1
print("#",f,"--->",myFinv(f))
f=sin(x)
print("#",f,"--->",myFinv(f))
f=cos(x)
print("#",f,"--->",myFinv(f))
f=tan(x)
print("#",f,"--->",myFinv(f))
# sqrt(x) + 1 ---> x**2 - 2*x + 1
# sin(x) ---> pi - asin(x)
# cos(x) ---> -acos(x) + 2*pi
# cos(x) ---> -acos(x) + 2*pi
大学入試問題
逆関数 < M.E.T.A.様の内部検索
逆関数 < kamelink様のタグ
T氏様
参考