Help Nizama with their Pascal Assignments!

  • Thread starter Thread starter nizama
  • Start date Start date
  • Tags Tags
    Pascal
AI Thread Summary
The discussion revolves around a user seeking urgent assistance with two Pascal programming assignments. The first task involves calculating the integral of e^x from a to b, with the user expressing confusion about the process and requesting a step-by-step explanation. A respondent points out that the integral of e^x is simply e^x, suggesting that the user can compute the area using a straightforward program that calculates e^a - e^b. The second task requires writing an algorithm to determine a "zero function," but the respondent asks for clarification on what is meant by "zero function," indicating a need for more details to provide assistance. Overall, the conversation highlights the user's urgency for help and the need for clearer definitions in programming concepts.
nizama
Messages
10
Reaction score
0
I've hot two assignments to do in pascal and i have no idea how to make it :(
i don't even have anything similar and i don't have time to search the web for answers now

I really need help and i need it as fast as it can be so please if anyone can help me with this i would really reallllyyy appreciate it
here it goes...

1) calculate by definition integral from a to b of (e^x)
( now i know that this integral in fact is area under curve and then you should have something like sum of these little squares that have side deltaX long...i need it step by step made...)

2) Write the algorithm for determining zero function
(also i need it step by step...first to define variable and then to define function etc...)

Please please please help me with this...

Thanx a lot

Nizama
 
Computer science news on Phys.org
Pascal? What school do you go to? Please tell me I haven't fallen into a worm hole and have been transported back to the 80's.

1) Why do you need to do the area of the little squares for e^x. Do you know the integral of e^x is e^x. All you have to do is write a program to calculate e^a - e^b. Thats a one line program.

2) I don't know what you mean by zero function. You would have to explain that to me.
 
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Back
Top