##Configuring Ubuntu for using IIT Delhi internet
For details http://www.cc.iitd.ernet.in/ and http://mirror.iitd.ernet.in
Thanks Vibhav Sinha for helping in compiling this
###Contents:
##Configuring Ubuntu for using IIT Delhi internet
For details http://www.cc.iitd.ernet.in/ and http://mirror.iitd.ernet.in
Thanks Vibhav Sinha for helping in compiling this
###Contents:
| x = '''from setuptools import setup | |
| from Cython.Build import cythonize | |
| import numpy | |
| import scipy | |
| setup( | |
| include_dirs=[numpy.get_include(),scipy.get_include()], | |
| ext_modules = cythonize("*.pyx",annotate=True, build_dir= "build", compiler_directives={'language_level' : "3"}) | |
| )''', |
| import matlab.engine | |
| import matplotlib.pyplot as plt | |
| class SimulinkPlant: | |
| def __init__(self,modelName = 'plant'): | |
| self.modelName = modelName #The name of the Simulink Model (To be placed in the same directory as the Python Code) | |
| #Logging the variables | |
| self.yHist = 0 | |
| self.tHist = 0 |
| class PIController: | |
| def __init__(self): | |
| #Maintain a History of Variables | |
| self.yHist = [] | |
| self.tHist = [] | |
| self.uHist = [] | |
| self.eSum = 0 | |
| def initialize(self): |
| class SimulinkPlant: | |
| def __init__(self,modelName = 'plant'): | |
| self.modelName = modelName #The name of the Simulink Model (To be placed in the same directory as the Python Code) | |
| #Logging the variables | |
| self.yHist = 0 | |
| self.tHist = 0 | |
| def setControlAction(self,u): | |
| #Helper Function to set value of control action |
| #include <stdio.h> | |
| #include <math.h> | |
| #include <malloc.h> | |
| float pi = 3.141592654; | |
| typedef struct _cmp{ | |
| float real; | |
| float imag; | |
| } Complex; |
| import gym | |
| from keras.models import Sequential | |
| from keras.layers import Dense,Dropout,Flatten | |
| from keras.optimizers import Adam | |
| from collections import deque | |
| import numpy as np | |
| import random | |
| EPISODES = 5000 |
| #include<stdio.h> | |
| #include<math.h> | |
| #include<stdlib.h> | |
| #include<conio.h> | |
| #define pi 3.141592653589 | |
| #define muo 0.000001256 | |
| // Object oriented code = best code |
| print "Hello World !!!" |