Group Abstract Group Abstract

Message Boards Message Boards

0
|
37.7K Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

How to evaluate a function at a point?

Posted 11 years ago
Clear["Global`*"]
eq[x] = f'[x] == 1/x
s[x] = DSolve[eq[x], f[x], x]
Print[Evaluate[s[1]]]
Evaluate[eq[1]]

How to evaluate a function at 1? The code does not produce a number.

POSTED BY: steve ma
3 Replies

Is that not quite what I said, apart from my adding boundary conditions? I made up the boundary conditions so that Steve would get a number as he required.

Best wishes,

Marco

POSTED BY: Marco Thiel

Isn't this simply

In[4]:= DSolve[f'[x] == 1/x, f[x], x] /. x -> 1

Out[4]= {{f[1] -> C[1]}}
POSTED BY: S M Blinder
POSTED BY: Marco Thiel
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard