|
I SHOULD NOT reply because I'm SO BAD at Math.. but I had to!
I found one Open Source program.. There are MANY out on the NET.
http://sourceforge.net/projects/jcconvenant
I only responded to this because this is the only Math subject I ever got a 'A' in.. I had the C# code I used for the grade but I cannot find it. (You would be more than welcome to it BUT.. I'm affraid it's lost) It has been been awhile since it was made. Sorry! As I remember it took me forever to get it right.
If it helps, I found a book at the time which 'at least made me understand the subject'
Algorithms In C, Third addition, Graphic algorithms, Part 5, by Robert Sedgewick, Addison-Wesley
|
|
|
|
|
Just me at will_george...something wrote: Algorithms In C, Third addition, Graphic algorithms, Part 5, by Robert Sedgewick, Addison-Wesley
Excellent choice. There are C++ versions available as well, with parts 1-4 (in a single volume), and part 5.
Steve S
Developer for hire
|
|
|
|
|
There are C++ versions available as well.. That is what I have! I really did not fing <<< (I thought I typed FIND) it hard to translate it to C# Well, the graphic part was a bit of a problem though. I only mentioned this book because I'm sort of stupid at math (but I love to try!) and this book at least made me think I knew what I was doing!
|
|
|
|
|
Hi, iam the mathematics person.can anyone give me the problem so i can sure help on it.
please give me the problem then i will think on it.
mehata sheetal
|
|
|
|
|
Hi, iam the mathematics person.can anyone give me the problem so i can sure help on it. please give me the problem then i will think on it......
Hi, I'm the mathematics person. Can anyone give me a problem? I'm sure I can help you with it.
I changed some of the English... LOL.. Not that I am a expert on it. I have been doing it for only 65+ years. I still get it all wrong!
Really! There is NO HATE HERE toward anybody.. I just thought it was funny from my point of view. I have a strange mind and had a good laugh. Good way to start a day. Thank You!
By the way, I know no other language except my Chicago style English. I'm in wonder of people that speak or write in other languages! Amazing! I have a 'TIN' ear and cannot get the 'words' spoken in my brain.
I'm about as poor at Math as my English!
Anyway... My question, which I'm sure is stupid. (I have no shame so I'll ask it anyway.)
I hope I can explain what I am thinking of....
Using Trig in a C# program or other (I mention C# because it is what I usually use now) I see strange results on what I try to do. (I would assume it is me) BUT I had this thought in my little old brain. The way I see it, Trig. is based on a true circle. However when I make a picturebox, panel or other it is always some sort of square or rectangle with my bitmap or Draw object within it. (Does Microsoft have a true circle Control?) If I want a theta, I 'think' it is sort of based on the mouse/joystick input from the picturebox/panel/whatever which is a square/rectangle..
What am I missing? I'm lost.
Bless YOU!
|
|
|
|
|
HI,
i m transportation engg. M.tech student. i want to learn matlab. how to start it from the begining????
i want to solve genetic algorithm for my project work. is matlab will be simple or c programme???????
REPLY ME
HAVE A NICE DAY
|
|
|
|
|
|
|
leckey wrote: Nuff said.
Yeppers.
|
|
|
|
|
not doing their own homework..
I sort of agree BUT in my math classes (which I take just because I love frustration) I have used comments/code from 'other' sources that got me a reasonable grade.. Sometimes FAILED using it! BUT it gave me insight to things I never knew before. Nuff Said.
-- modified at 8:51 Wednesday 8th November, 2006
I'm adding this because I'm old and hit the Post Message Button before I was finished.
I wanted to say that I can do almost anything with my hands without hardly thinking except draw/paint. My Mom can paint anything.. All I get is a blob!
Must be the Math in drawing objects! One time I carved a almost perfect Elephant in wood that everybody I know just LOVES it.. I have no idea how I did it.. I carved while watching Twilight Zone or something..
Not everybody that asks a question is asking for homework for you to do.. Well, maybe AOT but what does that matter? Their 'homework' will work out in the end when they cannot do the job.. BUT.... maybe somebody out there will become a Great Enginner or Banker keeping 'the books' on YOUR bank account!
|
|
|
|
|
I have a general question about de-allocating memory for large data structures.
If you have any large data structure, say a tree with many nodes, your destructor (assuming you're working in C++) would have to traverse each node to destroy it, right? Essentially, your destructor is an O(n) operation, where n is the number of nodes in the data structure. Makes sense so far, right?
Maybe I'm horribly naive, but this seems like a very slow way to destroy a data structure. When you close a large document, like a Photoshop document, the document appears to close and release memory quickly. How are the large data structures that make up the document destroyed so quickly? Is it typical for a destructor to traverse each node, or am I missing some well-known practice to get around this?
Thanks,
Steve
|
|
|
|
|
there are several ways, one of which is to control your own allocation. You allocate a large block, then divvy it up into smaller pieces that are passed as allocated blocks to nodes, then you can deallocate by the large block if necessary and then everything is gone. Photoshop, in pre 5.0 versions often did not release memory, once allocated it gets thrown on a reuse heap internally. Another way is simply to store pointers to all allocated blocks in a list, then it is a linear release, no traversals for a delete all.
There are papers on internal garbage collection routines and efficient process operations related to almost any subject, including memory allocation.
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
Indeed. If you're working with C++ classes, then you can provide class specific new and delete operators (for single objects and arrays). This means that in a Win32 environment you can hit the VMM directly (VirtualAlloc/VirtualFree) if it's appropriate, to do whatever you want.
Just carried out such an exercise on a server app (along with reshaping the internal data representation) and it was worth it - as reported by profiling the app with 'typical' and 'degenerate' loading.
Steve S
Developer for hire
|
|
|
|
|
Not sure this[^] is legal, but it led me to this[^] which seems interesting. The former link is also mentioned in the latter. So it might be.
"I know which side I want to win regardless of how many wrongs they have to commit to achieve it." - Stan Shannon
Web - Blog - RSS - Math - LinkedIn
|
|
|
|
|
Good find.
It always takes me an age to translate something from the book into CS, this is a real time saver!
|
|
|
|
|
The former link is also mentioned in the latter. So it might be.
LOL.. Got me to 'CLICK'
|
|
|
|
|
Hi!
I'm just looking for your thoughts and ideas on what would be the most elegant way to implement a system of Si units in C++.
Cheers,
--
Mike
|
|
|
|
|
Units are only semantic definitions over the variables used in your applications.
In your design, you should mention that all values are in SI units, and offer appropriate conversions functions between base units ( meter, kilogram, ... ) and alternative unit type (inches, pound, onces, ... )
after that, it's only a matter of enforcing, really not hard, those rules.
or maybe I did not understand what you want.
|
|
|
|
|
Maximilien wrote: Units are only semantic definitions over the variables used in your applications.
This need not be the case. An interesting discussion can be found here[^] in the Boost documentation. Code can be found in the Boost vault here[^].
Steve
|
|
|
|
|
An interesting discussion can be found here[^] in the Boost documentation. Code can be found in the Boost vault here[^].
Steve
|
|
|
|
|
it still is semantics.
in their example of multiplication
F = m . a
quantity<float,force> f = m * a;
you have to distinct "dimensions" one mass (FG) and one acceleration( m/s ) and the result which is a force ( newton )
they all have disctinct semantics, and the result is still valid.
for such a system to work in the context of symbolic equations ( F=MA )one would need to validate all combinations of operands dimensions that can result in another third dimensions.
quantity<float,mass> bogus = m * a; , they say it is not valid, but it's only mathematic/physic semantic
in that example, you will have to know and code that a Force is only Mass x Acceleration.
I think they are confusion symbolic expressions with numerical computation.
I don't believe I express myself correctly on that matter.
anyway, this is one great discussion!!!
|
|
|
|
|
The point of the Boost stuff is that you declare a type called "force", for example. You also have a type called "mass" and "acceleration". Now if you try to write f=mv ("f" is if type "force", "m" is of type "mass" and "v" is of type "velocity") you get a compiler error. If you just use normal numeric types no such checks are possible.
Steve
|
|
|
|
|
You are required to write a program which generates pie-chart using the given data during the development of an application. What will be the algorithm of your program
Asif
|
|
|
|
|
ch.Asif wrote: What will be the algorithm of your program
Ah, but of course it will be one that can generate pie-charts using the given data!
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- C hris L osinger, Online Poker Players?
|
|
|
|
|
ch.Asif wrote: You are required to write a program which generates pie-chart using the given data during the development of an application. What will be the algorithm of your program
data.read()
data.process()
data.draw_piechart()
in steps 2&3, always remember: Any sufficiently advanced technology is indistinguishable from magic. – Arthur C. Clarke, 1962
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|