<jupyter_start><jupyter_text><jupyter_code>import sympy as sym
print('Indefinite and Definite Calculator')

print('1). Indefinite Calculator')

print('a). Basic Integral')

f = lambda x: input('Input your function : ' )

x = sym.symbols('x')

print('The result of the integration is : ', sym.integrate(f(x)))

print('-------------------------------------------------------------')

print('b). Intergal Beetween 2 function with Basic Operation')

f = lambda x: input('Input your 1st function : ' )
g = lambda x: input('Input your 2nd function : ' )

x = sym.symbols('x')

print('The result of the integration is : ', sym.integrate(f(x) + g(x)))

print('-------------------------------------------------------------')

print('2). Definite Calculator')

print('a). Basic Integral')

f = lambda x: input('Input your function : ' )
a = float(input('Input your lower bound : '))
b = float(input('Input your upper bound : '))

x = sym.symbols('x')

print('The result of the integration is : ', sym.integrate(f(x), (x, a, b)))

print('-------------------------------------------------------------')

print('b). Intergal Beetween 2 function with Basic Operation')

f = lambda x: input('Input your 1st function : ' )
g = lambda x: input('Input your 2nd function : ' )
a = float(input('Input your lower bound : '))
b = float(input('Input your upper bound : '))

x = sym.symbols('x')

print('The result of the integration is : ', sym.integrate(f(x) + g(x)), (x, a, b))

print('-------------------------------------------------------------')

LaunchButton = input('Type "RESTART" if you want restart your iteration, or type "NO" to stop : ')
  
if LaunchButton == 'RESTART':
  main()
elif LaunchButton == 'NO':
  print('Thank Your for choosing this calculator')

print('-------------------------------------------------------------')<jupyter_output>Indefinite and Definite Calculator
1). Indefinite Calculator
a). Basic Integral
Input your function : x
The result of the integration is :  x**2/2
-------------------------------------------------------------
b). Intergal Beetween 2 function with Basic Operation
Input your 1st function : x
Input your 2nd function : x
The result of the integration is :  xx**2/2
-------------------------------------------------------------
2). Definite Calculator
a). Basic Integral
Input your lower bound : 0
Input your upper bound : 2
Input your function : x
The result of the integration is :  2.00000000000000
-------------------------------------------------------------
b). Intergal Beetween 2 function with Basic Operation
Input your lower bound : 0
Input your upper bound : 3
Input your 1st function : x
Input your 2nd function : x
The result of the integration is :  xx**2/2 (x, 0.0, 3.0)
-------------------------------------------------------------
Type "RESTART" if you want restart your iteration, or t[...]
{'fraction_non_alphanumeric': 0.29989440337909185, 'fraction_numerical': 0.01583949313621964, 'mean_word_length': 1.9059304703476483, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '481501', 'license': 'Unlicense', 'n_tokens_mistral': 795, 'n_tokens_neox': 744, 'n_words': 292, 'path': 'Integral_Calculator(Almost_Finished).ipynb', 'repo_name': 'EienNoTameni/Proyek', 'size': '2841'}