Math Symbols in C# !

Page 1 of 1

9 Replies - 3328 Views - Last Post: 19 May 2011 - 06:09 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'http://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=232541&amp;s=28f86b7d3eb360d175a3344181b809a1&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

#1 alovipday

• New D.I.C Head

Reputation: 0
• Posts: 5
• Joined: 18-May 11

Math Symbols in C# !

Posted 18 May 2011 - 11:03 AM

I want to make a Advanced Equation calculator.
But I don't know how to type it into richtextbox or ...?
Forward to receiving your help.
Is This A Good Question/Topic? 0

Replies To: Math Symbols in C# !

#2 tlhIntoq

• Please show what you have already tried when asking a question.

Reputation: 5838
• Posts: 12,677
• Joined: 02-June 10

Re: Math Symbols in C# !

Posted 18 May 2011 - 11:10 AM

Other than not knowing how to type such symbols... Do you have experience with coding at all?

More likely you would create this with buttons for the entering the special symbols... like an advanced calculator.

Standard resources, references and suggestions for new programmers.

I would recommend you start with "Hello World" just like the other million+ coders out there. Then work your way up to the more advanced tasks like this.

The problem with taking on large, complex tasks like this when you are new to coding is that
• it will frustrate you to the point of quitting,
• you don't know enough about coding to know where to start or in what direction to design your program
• You risk learning via the 'Swiss cheese' method where you only learn certain bits and pieces for the one project but have huge holes in your education.

I am going to guess that you are trying to teach yourself C# without much guidance, a decent book or without knowing where to look. Sometimes just knowing where to look can make all the difference. Google is your friend.
Search with either "C#" or "MSDN" as the first word: "MSDN Picturebox", "C# Custom Events", "MSDN timer" etc.

But honestly, just typing away and seeing what pops up in Intellisense is going to make your self-education take 20 years. You can learn by trying to reverse engineer the language through banging on the keyboard experimentation - or you can learn by doing the tutorials and following a good "How to learn C#" book.

Free editions of Visual Studio 2010

May I suggest picking up a basic C# introductory book? There are so many great "How do I build my first application" tutorials on the web... There are dozens of "Learn C# in 21 days", "My first C# program" type books at your local book seller or even public library.

D.I.C. C# Resource page Start here
Intro to C# online tutorial then here...
C# control structures then here.
MSDN Beginner Developer video series
MSDN video on OOP principals, making classes, constructors, accessors and method overloading
MSDN Top guideline violations, know what to avoid before you do it.

The tutorials below walk through making an application including inheritance, custom events and custom controls.
Bulding an application - Part 1
Building an application - Part 2
Quick and easy custom events
Passing values between forms/classes

Working with environmental variables

Debugging tutorial
Debugging tips
Great debugging tips
It still doesn't work, article

Build a Program Now! in Visual C# by Microsoft Press, ISBN 0-7356-2542-5
is a terrific book that has you build a Windows Forms application, a WPF app, a database application, your own web browser.

C# Cookbooks
Are a great place to get good code, broken down by need, written by coding professionals. You can use the code as-is, but take the time to actually study it. These professionals write in a certain style for a reason developed by years of experience and heartache.

Microsoft Visual Studio Tips, 251 ways to improve your productivity, Microsoft press, ISBN 0-7356-2640-5
Has many, many great, real-world tips that I use all the time.

Writing a text file is always one of the first things people want to do, in order to store data like high-scores, preferences and so on
Writing a text file tutorial.
Reading a text file tutorial.

And everyone always wants to connect to a database, right out of the gate so
Database tutorials right here on DIC

These are just good every-day references to put in your bookmarks.
MSDN C# Developers Center with tutorials
Welcome to Visual Studio

Have you seen the 500+ MSDN Code Samples? They spent a lot of time creating samples and demos. It seems a shame to not use them.

Let me also throw in a couple tips:
• You have to program as if everything breaks, nothing works, the cyberworld is not perfect, the attached hardware is flakey, the network is slow and unreliable, the harddrive is about to fail, every method will return an error and every user will do their best to break your software. Confirm everything. Range check every value. Make no assumptions or presumptions.
• Take the extra 3 seconds to rename your controls each time you drag them onto a form. The default names of button1, button2... button54 aren't very helpful. If you rename them right away to something like btnOk, btnCancel, btnSend etc. it helps tremendously when you make the methods for them because they are named after the button by the designer.
btnSend_Click(object sender, eventargs e) is a lot easier to maintain than button1_click(object sender, eventargs e)
• You aren't paying for variable names by the byte. So instead of variables names of a, b, c go ahead and use meaningful names like Index, TimeOut, Row, Column and so on. You should avoid 'T' for the timer. Amongst other things 'T' is commonly used throughout C# for Type and this will lead to problems. There are naming guidelines you should follow so your code confirms to industry standards. It makes life much easier on everyone around you, including those of us here to help. If you start using the standards from the beginning you don't have to retrain yourself later.

#3 alovipday

• New D.I.C Head

Reputation: 0
• Posts: 5
• Joined: 18-May 11

Re: Math Symbols in C# !

Posted 18 May 2011 - 11:22 AM

I'm doing a project using maple core to perform the calculation. And difficulties in the input equation. I want it similar to the input of maple or microsoft mathematics.

#4 alovipday

• New D.I.C Head

Reputation: 0
• Posts: 5
• Joined: 18-May 11

Re: Math Symbols in C# !

Posted 18 May 2011 - 11:27 AM

#5 tlhIntoq

• Please show what you have already tried when asking a question.

Reputation: 5838
• Posts: 12,677
• Joined: 02-June 10

Re: Math Symbols in C# !

Posted 18 May 2011 - 11:34 AM

So far, all I hear and read is "I want".

That doesn't answer my question:

Do you have any experience with programming in C# or is this somewhere between your first and tenth project?

Let's try this from the other direction...
What code do you have done so far? Part of the rules for DIC is that you provide your good faith effort to resolve your problem.

#6 alovipday

• New D.I.C Head

Reputation: 0
• Posts: 5
• Joined: 18-May 11

Re: Math Symbols in C# !

Posted 18 May 2011 - 11:48 AM

sorry because my english very poor. I am a student and a project that I'm talking to is one of my assignments. Do you know what I'm asking? how to create a bitmap to enter mathematical expressions.

Nói thể mà cũng không hiểu!

#7 modi123_1

• Suitor #2

Reputation: 10024
• Posts: 38,282
• Joined: 12-June 08

Re: Math Symbols in C# !

Posted 18 May 2011 - 12:03 PM

As tlhin pointed out DIC is not a code writing service. We can help with problems if we know the error and location, or would discuss general concepts, and right now it only seems to be that you are asking for the code. Hopefully not so much.

How about you explain what you have investigated, written, or looked into; to give us a better idea where to start.

Quote

Nói thể mà cũng không hiểu!

---
Vietnamese to English translation
Can say that he does not know!

what do you mean by this?

• Saucy!

Reputation: 6153
• Posts: 23,780
• Joined: 23-August 08

Re: Math Symbols in C# !

Posted 18 May 2011 - 12:40 PM

This is a very targeted and niche question. MathJax is possible if you're using WPF, but that seems to be strictly for display, and you seem to want to do this for input. I do not think what you're trying to do is going to be easy for a school project.

#9 alovipday

• New D.I.C Head

Reputation: 0
• Posts: 5
• Joined: 18-May 11

Re: Math Symbols in C# !

Posted 18 May 2011 - 08:02 PM

Quote

This is a very targeted and niche question. MathJax is possible if you're using WPF, but that seems to be strictly for display, and you seem to want to do this for input.

Yes. I want to handle the input good. Instead of having input into the integral (x ^ 3, x = 0 .. 3)

Quote

and right now it only seems to be that you are asking for the code.

I did not come to ask for code, I came to ask for solutions

#10 tlhIn`toq

• Please show what you have already tried when asking a question.

Reputation: 5838
• Posts: 12,677
• Joined: 02-June 10

Re: Math Symbols in C# !

Posted 19 May 2011 - 06:09 AM

alovipday, on 18 May 2011 - 09:02 PM, said:

I did not come to ask for code, I came to ask for solutions

But you are completely ignoring questions that are aimed at helping you. So what do you expect us to suggest to you?

AGAIN and for the final time I will ask you: How much experience do you have coding?
There is no point us suggesting something that is far beyond your skills.
Are you familiar with tracking the mouse position in points?
Are you familiar with GDI++ in order to make your own custom On_Paint method?
What areas are you skilled at so we can work with your strengths to advise you?