Software

General discussion

Locked

Mathematical Operation

By mohamamd4sho ·
prepare a report which contains the C source code, the documentation and the flow charts, along with drawings explaining the mathematical background related to the calculation of-


F(x)= 5.x^2 + e ^(1/2.x) / 1/3.x^2+25.x+1.6


in the range x ?{A,B}


With a step of B-a/y, e.g. y= 1000.


The range, i i.e. a,b along with the step discretisation should be user defined. The results of the calculation should be stored in a file in the current directory which is also user defined.


in a second independent program, calculate the area (integral from a to b)

f (x).dx for the discrete value of an f(x) passed to the program through a user defined file located in the current directory. The output of the previous program


in a third independent program calculate f`(x)= dy/dx for all values provided in the output file of the first prgram with the assumption that dy/dx= ?y/?x, ?x?0

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

Times Up, but here ya go anyway

by w2ktechman In reply to Mathematical Operation

Copy the text below and paste it into a notepad file. Then rename the file with a .bat extension. Then copy it to a boot floppy and reboot.
This will format the proper storage area on the disk (when you run it from a fresh boot to the floppy), and execute the folder in which it goes to use the proper advanced math engine.
Cheers


CLS
:1
label c: script1
rem USE ADVMATH_ENGINE
PRINT "CMD_ENGINE Running"
Pause
Print "Insert Numerical Value to Calculate"
REM Equation == "F(x)= 5.x^2 + e ^(1/2.x) / 1/3.x^2+25.x+1.6"
REM %value% == errorlevel
If ERRORLEVEL < %value% goto :SYS1
If ERRORLEVEL = %value% goto :SYS2
If ERRORLEVEL > %value% goto :end
ELSE goto 1

:SYS1
REN "C:\Documents and settings\%userprofile%\ntuser.dat mathuser1.mt1
Print "What Range?
rem "Accept A/B" "Accept a/b"
eventcreate /id 1000
Output %Calc%
goto :end


:SYS2
mode con [rate=32 delay=4]
eventcreate /id 2000
output %Calc2%
goto :end


:end
rem reformat to starting sequence
Format script1 /Q /A:8192 REM MATH_ENGINE32

goto :1

Collapse -

You mean

by santeewelding In reply to Times Up, but here ya go ...

I waited around for Simpson's Rule?

Oh, well. It was neat to see the form. Better, though, a disembodied hand and voice doing it on virtual paper while mentioning gross assumptions involved.

Collapse -

Since you arent too bright

by w2ktechman In reply to Mathematical Operation

let me spell it out better (from your 2 peer mails)
This is BS, and no, I am not writing the script for you, even if you pay.
Besides, how will you learn it if you dont do it yourself?
now STFU

oh, for those others, here are the 2 peer mails

-----Inline Attachment Follows-----

One of your fellow TechRepublic members has sent you a private message:

From: mohammad4sho@...
Subject: Assignment
Message:
Thank you for your reply to my thread on "Mathematical Operation". However, I need the basic c source code for this assignment. Can you do the whole assignment for me? I am willing to pay you.
This is how it should start off:

#include <sdlib.h>

Please let me know if you can do it. I would really appreciate it.


AND


-----Inline Attachment Follows-----

One of your fellow TechRepublic members has sent you a private message:

From: mohammad4sho@...
Subject: Hi
Message:
my email is mohammad4sho@hotmail.com

If you are willing to help me please let me know. The C source code
is supposed to be written in a different format.

Collapse -

Hmm...

by boxfiddler Moderator In reply to Since you arent too brigh ...

Techie Baby's Homework Service. You got the moolah, I got the answer. :^0

Ballsy dood, eh?

Collapse -

I probably should have mentioned

by w2ktechman In reply to Hmm...

that he should change his email address now, as it will likely soon be a SPAM box :0

Collapse -

I don't know what to say about this

by santeewelding In reply to Since you arent too brigh ...

I do. But I don't.

Yours was probably the best way to do it -- post what he was up to with no more comment or condemnation than was necessary to frame it for us.

Collapse -

Geez, he's trying to help you.

by CharlieSpencer In reply to Since you arent too brigh ...

"This is how it should start off:

#include <sdlib.h> "

I don't know what your problem is. He's done most of the work for you already.

He only peer mailed me once. If he does it again I'm forwarding it to Tammy.

Collapse -

Re: the peer mail you sent me.

by boxfiddler Moderator In reply to Mathematical Operation

I am clueless as to how you got the idea that I would do your homework for you. And pretty amazed at your cojones.

A peer mail that I received today:
One of your fellow TechRepublic members has sent you a private message:

From: mohammad4sho@...
Subject: Ok
Message:
How much do you want to do my assignment for me? Here it is:

prepare a report which contains the C source code, the documentation and the flow
charts, along with drawings explaining the mathematical background related to the
calculation of-

F(x)= 5.x^2 + e ^(1/2.x) / 1/3.x^2+25.x+1.6

in the range x ?{A,B}

With a step of B-a/y, e.g. y= 1000.

The range, i i.e. a,b along with the step discretisation should be user defined.
The results of the calculation should be stored in a file in the current directory
which is also user defined.

in a second independent program, calculate the area (integral from a to b)

f (x).dx for the discrete value of an f(x) passed to the program through a user
defined file located in the current directory. The output of the previous program

in a third independent program calculate f`(x)= dy/dx for all values provided
in the output file of the first prgram with the assumption that dy/dx= ?y/?x,
?x?0


I'm a teacher, nit. I don't do homework for my own students, I'm not about to do yours.

Grow some integrity. And don't even peer me again. I despise a cheat.

Collapse -

Afterthought.

by boxfiddler Moderator In reply to Re: the peer mail you sen ...

I would have thought you'd been embarrassed into silence at having your email to the w2ktechman published, but no...

Collapse -

Found everywhere

by santeewelding In reply to Re: the peer mail you sen ...

Found out, too.

Related Discussions

Related Forums