- Decimal mathematics operations and decimal array [closed]
- private void izracunaj_Click(object sender, EventArgs e)
- {
- double Num;
- string masa_voz = masa_vozila_otp_usp.Text.Trim();
- bool masa_vozisnum = double.TryParse(masa_voz, out Num);
- if (masa_vozisnum)
- {
- double m = double.Parse(masa_vozila_otp_usp.Text);
- double[] P = { 4, 8, 12, 16, 20, 24, 28, 32 };
- double[] a = { Math.Atan(P[0] / 100), Math.Atan(P[1] / 100), Math.Atan(P[2] / 100), Math.Atan(P[3] / 100), Math.Atan(P[4] / 100), Math.Atan(P[5] / 100), Math.Atan(P[6] / 100), Math.Atan(P[7] / 100), };
- double[] sina = { Math.Sin(a[0]), Math.Sin(a[1]), Math.Sin(a[2]), Math.Sin(a[3]), Math.Sin(a[4]), Math.Sin(a[5]), Math.Sin(a[6]), Math.Sin(a[7]) };
- double G = m * 9.81;
- double[] Ra = { G * sina[0], G * sina[1], G * sina[2], G * sina[3], G * sina[4], G * sina[5], G * sina[6], G * sina[7] };
- otp_uspona_tbl.Rows.Add(new Object[] { "sin a", sina[0].ToString(), sina[1].ToString(), sina[2].ToString(), sina[3].ToString(), sina[4].ToString(), sina[5].ToString(), sina[6].ToString(), sina[7].ToString() });
- otp_uspona_tbl.Rows.Add(new Object[] { "Ra", Ra[0].ToString(), Ra[1].ToString(), Ra[2].ToString(), Ra[3].ToString(), Ra[4].ToString(), Ra[5].ToString(), Ra[6].ToString(), Ra[7].ToString() });
- }
- else
- {
- MessageBox.Show("Vrednost u poljima mora biti brojna vrednost", "Greska");
- }
- }
Saturday, 4 August 2012
Decimal mathematics operations and decimal array
Subscribe to:
Post Comments (Atom)
Popular Posts
-
File name: Ashli Orion and Georgia Jones part2.wmv Size: 188.90 MB Type: .wmv Source: http://w...
-
import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JF...
-
Warning: This story contains fluffies, violence and human tragedy. Viewer discretion is advised. I don't even like c...
-
CheckBox chb = new CheckBox(); chb.InputAttributes.Add("value", "my_id_00"); chb.Text = "Title 00"; ...
-
import java.awt.BorderLayout; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Point; import ja...
-
HttpClient client = new DefaultHttpClient(); HttpPost httpPost = new HttpPost("http://simonexxx.no-ip.info/ilMercatinoDelxxx/Mod...
-
http://ul.to/so1xzfnd/Various Artists - Who Owns the Game? [iTunes Plus AAC M4A].rar http://imgchili.com/show/13303/13303501_who...
-
// the lines from which will be read $lines = "1 5 16 26"; // split these numbers above into an array $lines...
-
"30 Meters " + raw("²") def area_conversion(feet, project) if project.metric ...
-
private void Save_Click(object sender, EventArgs e) { string filePath = txtFilePath.Text; if (!Fi...
No comments:
Post a Comment