Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FM-tarea-02
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mildred Alexandra Arias Yanez
FM-tarea-02
Commits
1dfd84bc
Commit
1dfd84bc
authored
4 years ago
by
Mildred Alexandra Arias Yanez
Browse files
Options
Downloads
Patches
Plain Diff
Tarea_de_Física_Médica
parent
9381c357
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
miTrabajo/ProblemasdeTarea_Semana_2_de_Física_Médica__MildredArias.ipynb
+177
-0
177 additions, 0 deletions
...emasdeTarea_Semana_2_de_Física_Médica__MildredArias.ipynb
with
177 additions
and
0 deletions
miTrabajo/ProblemasdeTarea_Semana_2_de_Física_Médica__MildredArias.ipynb
0 → 100644
+
177
−
0
View file @
1dfd84bc
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### ProblemasdeTarea(Semana 2 de Física Médica)_MildredArias"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import statistics as stats"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Para el caso de una dosis de 70Gy nf es igual a 35"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"f=0.06*2+0.36"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0.9999997954519467"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.exp((-8E7)*(np.exp(-35*2*f)))\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Para el caso de una dosis de 50Gy nf es igual a 25"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0.9969844483020136"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.exp((-8E7)*(np.exp(-25*2*f)))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"La TPC es igual a 99% y nos interesa una TPC de 90%, entonces la dosis debe ser menor a la suministrada convencionalmente"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0.9476206429784807"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.exp((-8E7)*(np.exp(-22*2*f))) #para una dosis de 44Gy tenemos nf=22"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0.8689132895271553"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.exp((-8E7)*(np.exp(-21*2*f))) #para una dosis de 42Gy tenemos nf=21"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"si promediamos estas dos tendremos una TPC de 90%"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"0.90825\n"
]
}
],
"source": [
"TPC= [0.9476,0.8689]\n",
"print(stats.mean(TPC))"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
%% Cell type:markdown id: tags:
### ProblemasdeTarea(Semana 2 de Física Médica)_MildredArias
%% Cell type:code id: tags:
```
python
import
numpy
as
np
import
statistics
as
stats
```
%% Cell type:markdown id: tags:
Para el caso de una dosis de 70Gy nf es igual a 35
%% Cell type:code id: tags:
```
python
f
=
0.06
*
2
+
0.36
```
%% Cell type:code id: tags:
```
python
np
.
exp
((
-
8E7
)
*
(
np
.
exp
(
-
35
*
2
*
f
)))
```
%% Output
0.9999997954519467
%% Cell type:markdown id: tags:
Para el caso de una dosis de 50Gy nf es igual a 25
%% Cell type:code id: tags:
```
python
np
.
exp
((
-
8E7
)
*
(
np
.
exp
(
-
25
*
2
*
f
)))
```
%% Output
0.9969844483020136
%% Cell type:markdown id: tags:
La TPC es igual a 99% y nos interesa una TPC de 90%, entonces la dosis debe ser menor a la suministrada convencionalmente
%% Cell type:code id: tags:
```
python
np
.
exp
((
-
8E7
)
*
(
np
.
exp
(
-
22
*
2
*
f
)))
#para una dosis de 44Gy tenemos nf=22
```
%% Output
0.9476206429784807
%% Cell type:code id: tags:
```
python
np
.
exp
((
-
8E7
)
*
(
np
.
exp
(
-
21
*
2
*
f
)))
#para una dosis de 42Gy tenemos nf=21
```
%% Output
0.8689132895271553
%% Cell type:markdown id: tags:
si promediamos estas dos tendremos una TPC de 90%
%% Cell type:code id: tags:
```
python
TPC
=
[
0.9476
,
0.8689
]
print
(
stats
.
mean
(
TPC
))
```
%% Output
0.90825
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment