6 Replies - 611 Views - Last Post: 16 October 2013 - 03:04 PM Rate Topic: -----

#1 michael2007  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 08-September 12

Help for math calculate?

Posted 16 October 2013 - 01:07 PM

Hello to all,

please, can me somebody help with tis math calculation in VB6:
I have 2 textbox, in first go Vmeasured, in second then come calculation Pout done with button. Here is this math calculation:

Attached Image

Thank you very much for help!
Is This A Good Question/Topic? 0
  • +

Replies To: Help for math calculate?

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8963
  • View blog
  • Posts: 33,617
  • Joined: 12-June 08

Re: Help for math calculate?

Posted 16 October 2013 - 01:21 PM

.. what sort of help are you looking for? All of that is found in the math namespace/library.
Was This Post Helpful? 0
  • +
  • -

#3 michael2007  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 08-September 12

Re: Help for math calculate?

Posted 16 October 2013 - 01:57 PM

Ok, I think I found solution. Please, anyone confirm me that is ok?

Private Sub Command1_Click()
a = Text1.Text
b = ((a + 0.55) / Sqr(2)) ^ 2 / 50
Text2.Text = b
End Sub

Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8963
  • View blog
  • Posts: 33,617
  • Joined: 12-June 08

Re: Help for math calculate?

Posted 16 October 2013 - 02:01 PM

What happens you when you put a value in? Do you get the expected results?
Was This Post Helpful? 0
  • +
  • -

#5 michael2007  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 08-September 12

Re: Help for math calculate?

Posted 16 October 2013 - 02:37 PM

Problem is that I do not know what results must be.
This formula is to get mWatts from radio transmitter antenna, readed with RF probe sonde and measured with Digital Volt Meter that give result in mV.
I have try to measure one transmitter, and on the end I have on my Digital Volt Meter value of 100 mV, and this math calculation give me 101 mWatts (that is I think near real measurement).

Sorry for my English.
Was This Post Helpful? 0
  • +
  • -

#6 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8963
  • View blog
  • Posts: 33,617
  • Joined: 12-June 08

Re: Help for math calculate?

Posted 16 October 2013 - 02:40 PM

Okay.. step back and just look at the forumula. If you pump a few different values in there - by and - and then in your code snippet do they appear to be the same?
Was This Post Helpful? 0
  • +
  • -

#7 michael2007  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 08-September 12

Re: Help for math calculate?

Posted 16 October 2013 - 03:04 PM

No, then value is not the same, when I do this.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1