π
<-

Barycentre

Pour le TI-Basic sur Nspire

Re: Barycentre

Unread postby marcoz » 15 Feb 2014, 16:06

I wanted to ask this program:

How many elements are there? for esample 5


If there are five elements creates a 5 x n.elements matrix and enter the data.

A1 D1 xg1 yg1 zg1
A2 D2 xg2 yg2 zg2
A3 D3 xg3 yg3 zg3
A4 D4 xg4 yg4 zg4
A5 D5 xg5 yg5 zg5



When I ask the program:

Calculate the mass of each element:

A1 * D1 = M1
A2 * D2 = M2
A3 * A3 = M3
A4 * D4 = M4
A5 * D5 = M5

I ask the program calculate the total mass

M (tot) = M1 + M2 + M3 + M4 + M5


After I asked him: Now compute the centroid

Xg=[somm(xg^i* M^i) ] / M(total)= xg1*m1+xg2*m2+xg3*m3+xg4*m4+xg5*m5 / M(tot)
Yg=[somm(yg^i* M^i) ] / M(total)= yg1*m1+yg2*m2+yg3*m3+yg4*m4+yg5*m5 / M(tot)
Zg=[somm(zg^i* M^i) ] / M(total)= zg1*m1+zg2*m2+zg3*m3+zg4*m4+zg5*m5 / M(tot)





()
Prgm
InputStr "n. di elementi",aux
expr(aux)->aux
newMat(aux,5)->maux

I have this matrix aux * 5 and call it maux ok? In the first column I want to insert the values ​​of A and save them in a list , how do?
For i,1,aux
InputStr "Enter A"&string(i),aux1
expr(aux1)->aux1
aux1->maux[i,1]
EndFor



EndPrgm
Last edited by marcoz on 15 Feb 2014, 16:33, edited 1 time in total.
User avatar
marcoz
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Level up: 20%
 
Posts: 11
Joined: 11 Dec 2011, 14:58
Gender: Not specified
Calculator(s):
MyCalcs profile
Class: Ingegneria

Re: Barycentre

Unread postby marcoz » 15 Feb 2014, 16:14

Suppose that I insert the values
A1 = 7
A2 = 5
A3 = 2
A4 = 11
A5 = 52

At the end of the for loop I would like to save these values ​​in a list which I call for example corm

If I go home and I type in the corm I'd like to read (7,5,2,11,52)
User avatar
marcoz
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Level up: 20%
 
Posts: 11
Joined: 11 Dec 2011, 14:58
Gender: Not specified
Calculator(s):
MyCalcs profile
Class: Ingegneria

Re: Barycentre

Unread postby Levak » 15 Feb 2014, 18:58

Hi,

I am very much confused about your posts, as most of them are composed of questions you answered yourself ...

So, if you have a question : Ask it.
All your previous ones already had an answer.

By the way, I see everywhere "Input" and "InputStr", I guess you all meant Request / RequestStr.
Responsable design/graphique de TI-Planet
I do not get mad at people, I just want them to learn the way I learnt.
ImageTNOC [topic][DL]
nClock [topic][DL]
HideManager [topic][DL]
ZLock [topic][DL]
Theme Editor [topic][DL]
Mes programmes
User avatar
LevakAdmin
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 98.9%
 
Posts: 6414
Images: 22
Joined: 27 Nov 2008, 00:00
Location: 0x1AACC355
Gender: Male
Calculator(s):
MyCalcs profile
Class: BAC+5: Epita (ING3)

Re: Barycentre

Unread postby marcoz » 15 Feb 2014, 19:38

I see to be clearer. I have attached an exercise and would like to make a program to fix it
You do not have the required permissions to view the files attached to this post.
User avatar
marcoz
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Level up: 20%
 
Posts: 11
Joined: 11 Dec 2011, 14:58
Gender: Not specified
Calculator(s):
MyCalcs profile
Class: Ingegneria

Previous

Return to Nspire-Basic

Who is online

Users browsing this forum: ClaudeBot [spider] and 1 guest

-
Search
-
Social TI-Planet
-
Featured topics
Grand Concours 2024-2025 - Programmation Python
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
12345
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
1041 utilisateurs:
>1020 invités
>11 membres
>10 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)