<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Create a log-space vector in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Create-a-log-space-vector/m-p/368726#M61858</link>
    <description>&lt;P&gt;All-&lt;/P&gt;&lt;P&gt;I am new to JSL and I want to know if there is an easy way to create a log-space vector--similarly to the function in MATLAB or Numpy.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Alvaro&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 20:43:47 GMT</pubDate>
    <dc:creator>a_betancourt</dc:creator>
    <dc:date>2023-06-10T20:43:47Z</dc:date>
    <item>
      <title>Create a log-space vector</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-log-space-vector/m-p/368726#M61858</link>
      <description>&lt;P&gt;All-&lt;/P&gt;&lt;P&gt;I am new to JSL and I want to know if there is an easy way to create a log-space vector--similarly to the function in MATLAB or Numpy.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Alvaro&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 20:43:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-log-space-vector/m-p/368726#M61858</guid>
      <dc:creator>a_betancourt</dc:creator>
      <dc:date>2023-06-10T20:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create a log-space vector</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-log-space-vector/m-p/369125#M61896</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This isn't built-in but fortunately isn't difficult, using the log10 function and matrices. Here are 2 examples with log output for each.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Brady&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

//ex1: generate 9 logarithmically-spaced points between 10^3 and 10^7
lowExp = 3;
highExp = 7;
logVec1 = 10 ^ (lowExp :: highExp :: ((highExp - lowExp) / 10));
show (round(logVec1, 2));
print("\!n");

//ex2: generate 14 logarithmically-spaced points between 250 and 875
lowExp = log10(250);
highExp = log10(875);
logVec2 = 10 ^ (lowExp :: highExp :: ((highExp - lowExp) / 15));
show(round(logVec2, 2));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brady_brady_0-1616084204347.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31354iCD648F2CAE38D271/image-size/large?v=v2&amp;amp;px=999" role="button" title="brady_brady_0-1616084204347.png" alt="brady_brady_0-1616084204347.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 16:18:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-log-space-vector/m-p/369125#M61896</guid>
      <dc:creator>brady_brady</dc:creator>
      <dc:date>2021-03-18T16:18:44Z</dc:date>
    </item>
  </channel>
</rss>

