Read

Have you ever wanted to develop a math parser and evaluator? Are you in such a quandary or just have curiosity or interest in the matter? If so, you may download the complete source version 8.3.48 or later, but be warned there is almost no comment; or instead, follow versions ...

by
xrj
19
in VB.NET
Replies

98

ViewsRead

Solved
OOP development problem

For my own use, I'd like to develop a small Vector and a Matrix class, independent of some big libraries that exist out there. My question is: Should Vector and Matrix stay two independent entities or should I derive a Vctor frm a Matrix or a Matrix from a Vector? ...

by
ddanbe
2,250
in Software Development
Replies

44

ViewsRead

Code Snippet:
Training passing ten in addition and substraction

Python helps in real life situation to automate things. This program helps you to prep up your kids ability to go over/under ten, which is essential not only by itself, but also when calculating with bigger numbers. Program is not any special, but shows how useful Python can be in ...

by
pyTony
880
in Python
Replies

12

ViewsRead

Solved
Simpson's rule

Hello. I need to write a program to evaluate a definite integral with Simpson's composite rule. <math>\int\limits_{0}^{\frac {pi}{2}} \sin (sin(x) \sin x\, dx</math> I know there is a Simpson's rule available in Scipy, but I really need to write it by the following scheme. <math>I = \left ( f(a) + ...

by
Auroch
in C++
Replies

45

ViewsRead

Replies

24

ViewsRead

Solved
LINQ question about grouping

Hi, in my polynomial class all the terms consist of a List of tuples (double, uint), representing the coefficient and the exponent; a real and a natural number. The +operator implementation works great, but I was wondering if I could avoid to write two times It somehow feels not good, ...

by
ddanbe
2,250
in C#
Replies

22

ViewsRead

Hi there, I'm a real newbie to python so sorry if this is a stupid question or if I don't fully get your answer, no hate please! I'm trying to write a small program to use when calculating differential equations bu using Euler's step method, don't worry if you don't ...

by
kangarooblood
-4
in Python
Replies

42

ViewsRead

So I have a button which adds a "Miner" then removes the cost of the Miner. The problem is that it is taking away too much, double the cost, and also will not buy if the current gold is equal to the cost. I have no idea why it is ...

by
Doogledude123
45
in Java
Reply

14

ViewsRead

Replies

15

ViewsRead

I need help with this: -write an application to perform simple arithmetic operations on integers. Specification 1.Name the .java file SimpleMath 2.The program should do the following: â¦Prompt the user to enter five integer values from the keyboard. â¦Display the sum and average of the numbers. â¦Display the quotient of ...

by
kafi_1
in Computer Science
Replies

11

ViewsRead

I have looked around on the internet a little bit, but I am unable to find a function or equation for inverse/arcsine. I was able to find Inverse Cosine, but inverse sin doesn't seem to exist. Does anyone know how to use inverse sine in delphi?

by
schroaus
8
in Pascal and Delphi
Replies

33

ViewsRead

Replies

26

ViewsRead

Code Snippet:
Matrix Multiplication - C++ Program

Here is a small--complete--program that includes a sub-routine that inputs two matrices and then multiplies them. Notes: 1) I happen to like taking input from a text file. It eliminates the need to type input from the console, especially when debugging, it prevents the possibility of making typos. 2) The ...

by
DavidB
44
in C++
Replies

107

ViewsRead

I'm sorry. These question probably sound very stupid to you people. But to me they are extremely difficult. Imagine being completely ignorant with computers, and signing up for an intermediate level class (I did not take the beginner class)................ and NEEDING an A to make up for the 2 B's ...

by
cocopium
in C
Replies

45

ViewsRead

Replies

25

ViewsRead

Code Snippet:
'Mates8': a .Net math library

The days when the calculator had almost 3 thousand visits a day have gone. Since then, there have been several major versions and lots of minor versions. Somehow, I feel pleased in that the present core algorithm follows the rules of the first I read; of course, extending the simplicity ...

by
xrj
19
in VB.NET
Replies

33

ViewsRead

Code Snippet:
Quadratic Equation Solver - C++ Sub-routine

Here is my first Code Snippet contribution: a C++ sub-routine that computes the roots of a quadratic equation. Notes: This sub-routine checks if a = 0. IF a = 0, then the equation is actually not a quadratic equation; it is a linear equation with one--if any--root. IF the user ...

by
DavidB
44
in C++
Replies

108

ViewsRead

Code Snippet:
Solving the cubic equation using the Complex struct

Complex numbers are seldom used in daily life, altough you could say that every real number is complex, but with the imaginary part equal to zero. And btw. "complex" is a bit of a misnomer, perhaps we should call them "easies", because often they make it easier to perform certain ...

by
ddanbe
2,250
in C#
Replies

17

ViewsRead

I was in the library's multimedia room to do my assignment, but all PCs don't have Visual Studio and other smiliar programs. So I wrtie the code on Notepad for the question: Does it look correct or not?

by
SpottyBlue
in C++
Replies

31

ViewsRead

Can someone help me with this? This is part of my first assignment. I am quite new to programming. This requires to have a PAC Chart, IPO chart, Algorithm, Flowchart, Data Dictionary, C++ code

by
SpottyBlue
in C++
Replies

21

ViewsRead

Replies

19

ViewsRead

I was just wondering is there a class handling integrals and derivatives or do i have to make methods on my own?

by
terrier_unknown
7
in C#
Replies

22

ViewsRead

I have a site for youth basketball, where parents can list their kid to get them onto a team. The listings that get replied to by teams needing players are deleted, but some listing remain on there for months or years. To combat the potential confusion of which grade a ...

by
jonsan32
12
in JavaScript / DHTML / AJAX
Replies

12

ViewsRead

Reply

18

ViewsRead

I am having a problem with a program I wrote.. For the life of me I can't figure out what's wrong with the program.. the program should calculate a random value and then outputs an intrest rate and present value.. The problem is that I am getting zeros instead of ...

by
xHellghostx
in Java
Replies

6

ViewsRead

Replies

11

ViewsRead

I won't be asking for a source code yet. What I need to figure out is the process of a certain Math problem with the equation that seemed to be impossible to be converted to source code. Here it goes: A certain waveform is 0 volts for time less than ...

by
GeneClaude
in C++
Replies

17

Views