# Need help using ForwardDiff gradient with numerical loop

**URL:** <https://discourse.julialang.org/t/need-help-using-forwarddiff-gradient-with-numerical-loop/122352>\
**Category:** General Usage\
**Tags:** question\
**Created:** [November 6, 2024, 7:43pm UTC](https://discourse.julialang.org/t/need-help-using-forwarddiff-gradient-with-numerical-loop/122352 "2024-11-06T19:43:05Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Post date:** [November 6, 2024, 8:23pm UTC](https://discourse.julialang.org/t/need-help-using-forwarddiff-gradient-with-numerical-loop/122352/3 "2024-11-06T20:23:13Z")

</div>

Welcome to the forum!  
To make life easier for people trying to help you, it’s very useful to format the code with backticks, like so:

````julia
```julia
f(x) = 1
```

````

It seems that you tried but perhaps you used the wrong character? See this post for other tips on how to use the forum:

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

---

_[View the full topic](https://discourse.julialang.org/t/need-help-using-forwarddiff-gradient-with-numerical-loop/122352)._
