In [1]:
%load_ext autoreload
%autoreload 2
%matplotlib inline
import matplotlib.pyplot as plt
import os
import numpy as np
import pandas as pd
import warnings
warnings.filterwarnings('ignore')
In [2]:
import phuzzy as ph
from phuzzy.mpl import mix_mpl
from phuzzy.mpl.plots import plot_xy
In [3]:
x = ph.Trapezoid(alpha0=[-2.5, 2], alpha1=[1, 1.8], number_of_alpha_levels=15)
mix_mpl(x)
x.plot()
Out[3]:
In [4]:
y = x * x
fig, axs = plot_xy(x, y)
In [5]:
y = x ** 2
fig, axs = plot_xy(x, y)
In [6]:
y = x ** .5
fig, axs = plot_xy(x, y)
y.df
Out[6]:
In [7]:
y = abs(x)
fig, axs = plot_xy(x, y)
y.df
Out[7]:
In [8]:
x.convert_df(5)
y = -x
fig, axs = plot_xy(x, y)
y.df
Out[8]:
In [9]:
y = x - 3
fig, axs = plot_xy(x, y)
y.df
Out[9]:
In [10]:
y = x / 2
fig, axs = plot_xy(x, y)
y.df
Out[10]:
In [11]:
y = x ** 0
fig, axs = plot_xy(x, y)
y.df
Out[11]:
In [12]:
y = 0 ** x
y.name = "0^x"
fig, axs = plot_xy(x, y)
y.df
Out[12]:
In [ ]: