Skip to content

Instantly share code, notes, and snippets.

@volkanozcan
Created December 22, 2016 17:51
Show Gist options
  • Save volkanozcan/3436e7c85ecaac2888761ac50d8cec1b to your computer and use it in GitHub Desktop.
Save volkanozcan/3436e7c85ecaac2888761ac50d8cec1b to your computer and use it in GitHub Desktop.
elektronik.ipynb
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"metadata": {
"collapsed": true,
"trusted": true
},
"cell_type": "code",
"source": "import numpy as np",
"execution_count": 1,
"outputs": []
},
{
"metadata": {
"collapsed": false,
"trusted": true
},
"cell_type": "code",
"source": "G,m,rho,Cd,A=1.8,65.0,1.225,1.4,0.8\nalpha=rho * Cd * A / 2.0\nbeta = alpha / m",
"execution_count": 2,
"outputs": []
},
{
"metadata": {
"collapsed": false,
"trusted": true
},
"cell_type": "code",
"source": "t=np.arange(0,1001)",
"execution_count": 3,
"outputs": []
},
{
"metadata": {
"collapsed": false,
"trusted": true
},
"cell_type": "code",
"source": "vx=vy=x=y=np.array(np.zeros(90*1001)).reshape(90,1001)\nangle=np.arange(90)",
"execution_count": 4,
"outputs": []
},
{
"metadata": {
"collapsed": false,
"trusted": true
},
"cell_type": "code",
"source": "for instant in t :\n for degree in angle:\n vx[degree][instant]=70*np.cos(np.radians(degree))\n vy[degree][instant]=70*np.sin(np.radians(degree))",
"execution_count": 5,
"outputs": []
},
{
"metadata": {
"collapsed": false,
"trusted": true
},
"cell_type": "code",
"source": "",
"execution_count": null,
"outputs": []
},
{
"metadata": {
"collapsed": true,
"trusted": true
},
"cell_type": "code",
"source": "",
"execution_count": null,
"outputs": []
}
],
"metadata": {
"hide_input": false,
"latex_envs": {
"current_citInitial": 1,
"bibliofile": "biblio.bib",
"eqNumInitial": 0,
"cite_by": "apalike",
"eqLabelWithNumbers": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3",
"language": "python"
},
"language_info": {
"pygments_lexer": "ipython3",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.5.2",
"file_extension": ".py",
"codemirror_mode": {
"version": 3,
"name": "ipython"
}
},
"gist": {
"id": "",
"data": {
"description": "elektronik.ipynb",
"public": true
}
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment