Re: [Gambas-user] Math Operation

2017-05-05 Thread cheikh diabang
] coeff_v_c_w_2 = get_coef[0] Thank you very much 😊😊 😊 De : Jussi Lahtinen Envoyé : vendredi 5 mai 2017 12:43 À : mailing list for gambas users Objet : Re: [Gambas-user] Math Operation Ah, of course... Jussi On Fri, May 5, 2017 at 9:57 AM, Fabien Bodard wrote: >

Re: [Gambas-user] Math Operation

2017-05-05 Thread Jussi Lahtinen
just access in one element on > return array. Thank for your help > > > > > > > > De : Jussi Lahtinen > > Envoyé : jeudi 4 mai 2017 15:12 > > À : mailing list for gambas users > > Objet : Re: [Gambas-user] M

Re: [Gambas-user] Math Operation

2017-05-04 Thread Fabien Bodard
__ > De : Jussi Lahtinen > Envoyé : jeudi 4 mai 2017 15:12 > À : mailing list for gambas users > Objet : Re: [Gambas-user] Math Operation > > Declare the function as: > > Function calcul_coefficients(x As Integer, y As Integer, degre As Integer) > As Float[]

Re: [Gambas-user] Math Operation

2017-05-04 Thread cheikh diabang
I think the copy is not necessary. I want just access in one element on return array. Thank for your help De : Jussi Lahtinen Envoyé : jeudi 4 mai 2017 15:12 À : mailing list for gambas users Objet : Re: [Gambas-user] Math Operation Declare the function as

Re: [Gambas-user] Math Operation

2017-05-04 Thread Jussi Lahtinen
calcul_coefficients[1] >coeff_v_c_w_2 = calcul_coefficients[0] > > Thank for help. > > > De : cheikh diabang > Envoyé : jeudi 4 mai 2017 10:42 > À : mailing list for gambas users > Objet : Re: [Gambas-us

Re: [Gambas-user] Math Operation

2017-05-04 Thread cheikh diabang
] coeff_v_c_w_2 = calcul_coefficients[0] Thank for help. De : cheikh diabang Envoyé : jeudi 4 mai 2017 10:42 À : mailing list for gambas users Objet : Re: [Gambas-user] Math Operation Thank you very much Julio Sanchez 😊. Its working fine

Re: [Gambas-user] Math Operation

2017-05-04 Thread cheikh diabang
Thank you very much Julio Sanchez 😊. Its working fine De : Julio Sanchez Envoyé : jeudi 4 mai 2017 10:30 À : mailing list for gambas users Objet : Re: [Gambas-user] Math Operation cheikh diabang: In addition if you are going to return several float values

Re: [Gambas-user] Math Operation

2017-05-04 Thread Julio Sanchez
cheikh diabang: In addition if you are going to return several float values, you should put float[]... Function calcul_coefficients(x As Integer, y As Integer, degre As Integer) As Float[] Dim ArrayABC as new float[] . ArrayABC.add(A) ArrayABC.add(B) ArrayABC.add(C) Return ArrayAB

Re: [Gambas-user] Math Operation

2017-05-04 Thread cheikh diabang
))) / ((nbr_coef * x ^ 2) - (x ^ 2)) Else Message.Info("unavalaible coefficients") Endif Next Return a, b, c; End De : Tobias Boege Envoyé : jeudi 4 mai 2017 10:13 À : mailing list for gambas users Objet : Re: [Gambas-user] Math Operatio

Re: [Gambas-user] Math Operation

2017-05-04 Thread Tobias Boege
On Thu, 04 May 2017, cheikh diabang wrote: > hello. i have write this code below on gambas 3.9.2 and when i run that, he > indique syntaxe error > > > Function calcul_coefficients(x As Integer, y As Integer, degre As Integer) As > Float > 'Dim ak As Float > Dim a As Float > Dim b As Float

[Gambas-user] Math Operation

2017-05-04 Thread cheikh diabang
hello. i have write this code below on gambas 3.9.2 and when i run that, he indique syntaxe error Function calcul_coefficients(x As Integer, y As Integer, degre As Integer) As Float 'Dim ak As Float Dim a As Float Dim b As Float Dim c As Float Dim nbr_coef As Integer Dim k As Intege