Jump to content



Photo
- - - - -

Duda a la hora de programar

Programe

Best Answer piu58 , 15 December 2017 - 02:43 PM

You cannot print and calculate in the same line. Instead of

Print EΩ/L=>K11

use 

EΩ/L=>K11

Print K11

Go to the full post


  • Please log in to reply
1 reply to this topic

#1 dr8madrid

dr8madrid

    Newbie

  • Members
  • Pip
  • 3 posts

  • Calculators:
    Casio ClassPad fx-CP400

Posted 15 December 2017 - 10:38 AM

Estoy empezando a programar para que la calculadora me haga rápidamente unos cálculos matriciales en un examen. El programa es el siguiente:

 

SetDecimal

Input EΩ

Input L

Input α

Print "K11=K22=-K12"

Print EΩ/L=>K11

Print "T"

Print [[cos(α),[sin(α)]]=>T

Print "K´11=K´22=K´12=T*K´12*trn(T)"

Print T*K11*trn(T)=>K´11

 

Tengo que hacer este proceso varias veces en el examen, lo hago una vez para EΩ=80000, L=4 y α=0 y obtengo los valores correctos. El problema es cuando vuelvo a hacer este proceso para EΩ=80000, L=5 y α=36,87. K11 y T me las vuelve a calcular de forma correcta pero K´11, me da el valor que había obtenido antes, me explico. Para EΩ=80000, L=4 y α=0 me devuele K´11=[[20000,0],[0,0]] y cuando vuelvo a ejecutar el programa, me devuelve otra vez K´11=[[20000,0],[0,0]], cuando el resultado debería ser distinto. Es como si no me cambiara el valor de la variables K11 y T, ¿Qué estoy haciendo mal?



#2 piu58

piu58

    Casio Freak

  • Members
  • PipPipPipPip
  • 145 posts
  • Gender:Male

  • Calculators:
    Casio Graph 90+E, Casio fx-CG20

Posted 15 December 2017 - 02:43 PM   Best Answer

You cannot print and calculate in the same line. Instead of

Print EΩ/L=>K11

use 

EΩ/L=>K11

Print K11






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users