VBForums - Maths Forum
http://www.vbforums.com/
By popular request, a place for you to discuss Maths of all forms. Somewhere to think about algorithms and the applications of maths to programming too.enWed, 13 Dec 2017 08:46:37 GMTvBulletin60http://www.vbforums.com/images/misc/rss.pngVBForums - Maths Forum
http://www.vbforums.com/
Another help!
http://www.vbforums.com/showthread.php?856389-Another-help!&goto=newpost
Wed, 06 Dec 2017 17:09:53 GMTHello again, I faced a new problem with math, I'm not smart in English math because I don't study Math in English, hope you understand this situation!

This time with Simultaneous mixed equations:
ax+by=m

cx2+dy2=n

The codes are:

Dim a, b, c, d, m, n As Integer
Dim x1, y1, x2, y2 As Double

a = Val(Txt_a.Text)
b = Val(Txt_b.Text)
m = Val(Txt_m.Text)
c = Val(Txt_c.Text)
d = Val(Txt_d.Text)
n = Val(Txt_n.Text)
x1 = (m * a * d + Math.Sqrt(m ^ 2 * a ^ 2 * d ^ 2 - (b ^ 2 * c + a ^ 2 * d) * (d * m ^ 2 - b ^ 2 * n))) / (b ^ 2 * c + a ^ 2 * d)

x2 = (m * a * d - Math.Sqrt(m ^ 2 * a ^ 2 * d ^ 2 - (b ^ 2 * c + a ^ 2 * d) * (d * m ^ 2 - b ^ 2 * n))) / (b ^ 2 * c + a ^ 2 * d)

I'm sure that the bug is from equations' solution.
]]>Maths Forumcasper.mtahttp://www.vbforums.com/showthread.php?856389-Another-help!I need a small help in visual studio regarding to math..
http://www.vbforums.com/showthread.php?856379-I-need-a-small-help-in-visual-studio-regarding-to-math&goto=newpost
Wed, 06 Dec 2017 11:26:38 GMTHello, I'm making a program to solve equation with three unknowns, I got the solution of the three simultaneous from here, I don't know how it works.
So, I faced a problem which is the 3 answers of x,y,z are wrong!!!
The Simultaneous are:
ax + by + cz = j
dx + ey + fz = k
gx + hy + iz = l

the code is:
Dim a, b, c, d, f, g, h, i, e As Integer
Dim j, k, l As Integer

Dim x, y, z As Double

a = Val(txtA.Text)
b = Val(txtB.Text)
c = Val(txtC.Text)
d = Val(txtD.Text)
e = Val(txtE.Text)
f = Val(txtF.Text)
g = Val(txtG.Text)
h = Val(txtH.Text)
i = Val(txtI.Text)
j = Val(txtA.Text)
k = Val(txtK.Text)
l = Val(txtL.Text)
x = (j * e * i + b * f * l + c * k * h - c * e * l - b * k * i - j * f * h)
y = (a * k * i + j * f * g + c * d * l - c * k * g - j * d * i - a * f * l)
z = (a * e * l + b * k * g + j * d * h - j * e * g - b * d * l - a * k * h)

I would like to get a help from you guys!! Thanks in advance.
]]>Maths Forumcasper.mtahttp://www.vbforums.com/showthread.php?856379-I-need-a-small-help-in-visual-studio-regarding-to-mathI would like to create a very simple 3D Vector library
http://www.vbforums.com/showthread.php?855501-I-would-like-to-create-a-very-simple-3D-Vector-library&goto=newpost
Tue, 14 Nov 2017 18:35:56 GMTHi, I am concentrating on math at this time and I am learning about 3D rendering and the math involved. At this time I am going through some tutorials on Vectors, so I have a simple understanding of the basics. My main resource for this is khanacademy_org.
I am using Visual Basic .NET 2017 Community edition and I would like to create a 3D Vector library. The user will end up having a Vector3f type for example and will be able to do some basic operations on it.
I need help getting started with this both as a math concept and also as an implementation in Visual Basic. So that the library is useful rather than something that slows down the program.
So what would be the best way to organize this and should I use Structures, Classes and etc. What operations do I need to have as a minimum and how would the operations be represented in Visual Basic, so I can perform arithmetic operations on the Types.Hi, I am concentrating on math at this time and I am learning about 3D rendering and the math involved. At this time I am going through some tutorials on Vectors, so I have a simple understanding of the basics. My main resource for this is khanacademy_org.

I am using Visual Basic .NET 2017 Community edition and I would like to create a 3D Vector library. The user will end up having a Vector3f type for example and will be able to do some basic operations on it.

I need help getting started with this both as a math concept and also as an implementation in Visual Basic. So that the library is useful rather than something that slows down the program.

So what would be the best way to organize this and should I use Structures, Classes and etc. What operations do I need to have as a minimum and how would the operations be represented in Visual Basic, so I can perform arithmetic operations on the Types.
]]>Maths Forumic3pixelhttp://www.vbforums.com/showthread.php?855501-I-would-like-to-create-a-very-simple-3D-Vector-library