public static DIEM Nhap_diem() { DIEM kq; kq.x = SoThuc.NhapSoThuc("Hoanh do:"); kq.y = SoThuc.NhapSoThuc("Tung do:"); return(kq); }
public static DON_THUC Nhap_don_thuc() { DON_THUC kq; kq.He_so = SoThuc.NhapSoThuc("He so = "); kq.So_mu = SoNguyen.NhapSoNguyen("So mu = "); return(kq); }
public static TAM_THUC Nhap_tam_thuc() { TAM_THUC kq; kq.a = SoThuc.NhapSoThuc("Nhap a: "); kq.b = SoThuc.NhapSoThuc("Nhap b: "); kq.c = SoThuc.NhapSoThuc("Nhap c: "); return(kq); }
static void Main(string[] args) { do { float a = SoThuc.NhapSoThuc("Nhap a = "); float b = SoThuc.NhapSoThuc("Nhap b = "); TinhToan.giapt(a, b); } while (SoNguyen.NhapSoNguyen("\nTiep tuc (1.Tiep, 0.Khong) ?") != 0); }
static void Main(string[] args) { do { float x = SoThuc.NhapSoThuc("Nhap x = "); int n = SoNguyen.NhapSoNguyenDuong("Nhap n = "); Console.Write("S(" + x + "," + n + ") = " + TinhToan.Tinh(x, n)); } while (SoNguyen.NhapSoNguyen("\nTiep tuc (1.Tiep, 0.Khong) ?") != 0); }
public static TAM_THUC Nhap_tam_thuc() { TAM_THUC kq; kq.a = SoThuc.NhapSoThuc("a="); kq.b = SoThuc.NhapSoThuc("b="); kq.c = SoThuc.NhapSoThuc("c="); return(kq); }
static void Main(string[] args) { ArrayList P; Double x0; Double kq; P = Nhap_da_thuc(); x0 = SoThuc.NhapSoThuc("Nhap x0 = "); kq = Tinh_gia_tri(P, x0); String Chuoi; Chuoi = "Gia tri da thuc P(x)=" + Chuoi_da_thuc(P) + "\n"; Chuoi = Chuoi + "voi x0=" + x0 + " la :" + kq; Console.Write(Chuoi); Console.ReadLine(); }
public static void Main(string[] args) { DON_THUC P; Double x0; Double kq; P = Nhap_don_thuc(); x0 = SoThuc.NhapSoThuc("x0 = "); kq = Tinh_gia_tri(P, x0); String Chuoi = "Gia tri cua don thuc P(x)="; Chuoi = Chuoi + Chuoi_don_thuc(P) + "\n"; Chuoi = Chuoi + "voi x0=" + x0; Chuoi = Chuoi + " la " + kq; Console.Write(Chuoi); Console.ReadLine(); }